• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 36 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0031 秒)

1. directionLight.direction代码警告提示 [ 100%]

directionLight.direction代码警告提示 定向光设置 directionLight.direction = new Laya.Vector3(-.3, -1, -1); 会提示 Warning: discard property,please use transform's property instead. 去掉就不会, 设置transform会报错 2018-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微...

来源: Laya_社区 发布时间: 20180112

2. Shader中的 u_DirectionLight.direction 怎么用啊? [ 99%]

Shader中的 u_DirectionLight.direction 怎么用啊? Laya3D中 shader 我需要获取平行光方向, 我看文档是 u_DirectionLight.direction, 但是我初始化 uniformMap 的时候到底需不需要加 "." 呢?     在顶点着色器中我 通过 uniform vec3 u_DirectionLight.directio...

来源: Laya_社区 发布时间: 20200520

3. 2.1版本shader里的u_DirectionLight.Direction在2.6中对应成了什么东西? [ 97%]

2.1版本shader里的u_DirectionLight.Direction在2.6中对应成了什么东西? 我现在有个2.1的shader ,里面用到了u_DirectionLight.Direction 我想知道在2.6中是怎样取得平行光方向的   2020-08-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

来源: Laya_社区 发布时间: 20200820

4. discard property,please use transform's property instead [ 95%]

...ra.addComponent(CameraMoveScript);         //方向光         var directionLight = scene.addChild(new Laya.DirectionLight());         directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6);         directionLight.direction = new Laya.Vector3(0, -1.0, -1.0);         //灯光开...

来源: Laya_社区 发布时间: 20180725

5. 3D阴影无法渲染出来 [ 85%]

3D阴影无法渲染出来 //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0); directionLight.shadow = true; directionLight.shadowDistance = 3; directionLight...

来源: Laya_社区 发布时间: 20170809

6. 3D灯光阴影无效 [ 78%]

3D灯光阴影无效 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.7, 0.6, 0.6); directionLight.specularColor = new Vector3(1.0, 1.0, 0.9); directionLight.diffuseColor = new Vector3(1, 1, 1); directionLight.tr...

来源: Laya_社区 发布时间: 20170617

7. 请问我导入3d模型一直找不到它 [ 76%]

...角度不对的原因  菜鸟注意 ts 1.4  添加一盏灯光     var directionLight =scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight;             directionLight.ambientColor = new Laya.Vector3(0.7, 0.6, 0.6);             directionLight.specularColor = new Lay...

来源: Laya_社区 发布时间: 20161012

8. 动态阴影被切割了?为啥没有显示完成的阴影 [ 76%]

...mera.clearColor = null; camera.orthographic = false; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.direction = new Laya.Vector3(-1, -1, 0); directionLight.shadow = true; directionLight.shadowDistance...

来源: Laya_社区 发布时间: 20180402

9. 在场景中增加方向光,仅在slow下会出现报错 [ 74%]

...错 Laya.stage.frameRate = "slow"下,在场景中增加方向光,进行directionLight.direction = new Laya.Vector3(-0.2, -1,-0.45);设置的时候,会概率性的出现报错,如图示:注释掉directionLight.direction 的改变或者Laya.stage.frameRate = "fast"下则不会出现报错,...

来源: Laya_社区 发布时间: 20190617

10. laya默认模型的阴影没有渲染 [ 74%]

...(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.8, 0.8, 0.8); directionLight.direction = new Laya.Vector3(-1, -1, 2); //灯光开启阴影 directionLight.shadow = true; //...

来源: Laya_社区 发布时间: 20180717