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

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

61. 3D加载不了 [ 83%]

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

62. localRotationEulerY旋转位置错误 [ 83%]

...0, 0), true, false);          //方向光         var directionLight = new Laya.DirectionLight();         this.newScene.addChild(directionLight);         directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6);         //设置平行光的方向  ...

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

63. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 82%]

...rm.rotate(new Laya.Vector3(-30, 0, 0), true, false); //添加方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new Laya.Vector3(...

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

64. Cannot read property 'rayCast' of undefined [ 82%]

...rue, false); //3.清除照相机颜色 this.camera.clearColor = null; this.directionLight = new Laya.DirectionLight(); this.scene.addChild(this.directionLight); this.directionLight.direction = new Laya.Vector3(0, -0.8, -1); this.directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); Laya.Sprite3D.l...

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

65. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 82%]

...); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var directionLight = new Laya.DirectionLight(); this.scene.addChild(directionLight); //设置灯光方向 var mat = directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transfor...

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

66. laya3d物体碰撞与触发检测的问题 [ 82%]

...(-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.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 0)); //添加自定义模型1 var box...

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

67. 官方技术文档中的问题 [ 82%]

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

68. 3D场景中背景无法透明,版本2.7.1 [ 82%]

...r3(-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.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 0)); //添加自定义模型 var box ...

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

69. 分享水波一个shader [ 82%]

...u_NoiseTex; uniform vec3 u_CameraPos; uniform vec3 u_AmbientColor; uniform DirectionLight u_DirectionLight; uniform float u_Time;  varying vec2 v_textcoord; varying vec3 v_normal; varying vec4 v_wpos; void main() { float _NoiseSpeedX = 1.0; float _NoiseSpeedY = 1.0; float _NoiseScaleX = 0.2; float ...

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

70. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 82%]

...记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 !...

来源: Laya2.0_文档 发布时间: 20210715