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

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

41. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 82%]

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

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

42. 分享水波一个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

43. IDE创建3D示例项目(JavaScript-3D基础(JS)-快速开始一个LayaAir3D项目) [ 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)); //添加自定义模型 var box ...

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

44. 加载不了模型 [ 81%]

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

45. 3D加载不了 [ 81%]

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

46. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 80%]

...ansform.rotate(new Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vector3(0.6, 0.6, 0.6); //加载精灵 var monkey:Sprite3D = Loader.getRes("res/threeDimen/skinModel/LayaMonke...

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

47. laya.d3.core.light.DirectionLight [ 80%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames DirectionLightProperties | Methods | Events Packagelaya.d3.core.lightClasspublic class DirectionLightInheritanceDirectionLight LightSprite Sprite3D Node EventDispatcher Object DirectionLight 类用于创建平行光。 Pub...

来源: Laya2.0_api 发布时间: 20190513

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

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

49. 官方技术文档中的问题 [ 79%]

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

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

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