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

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

131. 3D加载不了 [ 52%]

...Component(CameraMoveScript);         //添加方向光         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);         //添加自定义...

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

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

...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

133. PBR标准材质实时阴影渲染问题 [ 52%]

...addComponent(ModelViewer); modelViewer.AroundPos = Laya.Vector3._ZERO; var directionLight = (scene_360 as Laya.Node).getChildByName('Directional light') as Laya.DirectionLight; //灯光开启阴影 directionLight.shadow = true; //可见阴影距离 directionLight.shadowDistance = 20; directionLight....

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

134. 上架的游戏被苹果下架了 [ 51%]

...to deceive users or undermine the review process are unacceptable and is a direct violation Section 3.2(f) of the Apple Developer Program License Agreement. Continuing to violate the Terms & Conditions of the Apple Developer Program will result in the termination of your account, as well as any ...

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

135. 3D基础显示对象 · LayaAir3.0文档 · LAYABOX [ 51%]

...图2-4) 阴影除了设置3D基础对象的MeshRenderer,还需要保证Direction Light的Shadow Mode不为None。 2.4 添加组件 每个3D基础对象,都可以添加组件来实现高级的功能,通过对立方体添加3D物理组件 Rigidbody3D ,勾选重力属性,最后添加碰撞...

来源: Laya3.0_文档 发布时间: 20240624

136. 射线检测-选取物体 [ 51%]

...ector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 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, -1); //平面 var plane = scene.addChild(new Laya.MeshSpri...

来源: Laya_示例 发布时间: 20240930

137. Layaair发布flash遇到的错误 [ 51%]

...辑,在 params.allowfullscreen=”true”;后面加上params.wmode = "direct"; 但是我这边还出现了其他错误 1. FlashInit.as中的RunDriver.newWebGLContext报错,因为RunDriver里没有newWebGLContext这个属性 2. 无限循环报错 Browser 234行调用__init__(); Browser 73行调...

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

138. 官方技术文档中的问题 [ 51%]

...30, 0, 0), true, false); camera.clearColor = null;  //添加方向光 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);  //添加自定义模型 var box = scene.addChild(new...

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

139. 【初学者】导入模型进行旋转结果出现问题 [ 50%]

...(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0); //添加...

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

140. laya3d导入模型动画,添加光照之后,模型全黑。 [ 49%]

...光的情况下去增加点光源去布光应该就好了 //方向光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vector3(1, 1, 1); directionLight.direction = new Vector3(0, -1.0, -1.0); 如果还是达不到你想要的效...

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