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

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

21. 3D灯光阴影无效 [ 90%]

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

22. laya.d3.core.light.DirectionLight_API3.0 [ 90%]

...ted All Inherited Externals Only exported Menu Globals "laya/d3/core/light/DirectionLight" DirectionLight Class DirectionLight deprecated DirectionLight 类用于创建平行光。 Hierarchy LightSprite DirectionLight Index Constructors constructor Properties _extra _scene _url name tag WORLDINVERTF...

来源: Laya3.0_api 发布时间: 20231115

23. 高级应用-渲染纹理 [ 89%]

...enderingOrder = -1; renderTargetCamera.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); var layaMonkey = scene.addChild(Laya.Sprite3D.loa...

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

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

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

25. 动画-旧版骨骼动画 [ 88%]

...)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); var plane = scene.addChild(Laya.Sprite3D.load("../....

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

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

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

27. 自定义shader-地形shader [ 86%]

...CustomTerrainMaterial.MATERIALSPECULAR, Laya.Shader3D.PERIOD_MATERIAL], 'u_DirectionLight.Direction': [Laya.Scene.LIGHTDIRECTION, Laya.Shader3D.PERIOD_SCENE], 'u_DirectionLight.Diffuse': [Laya.Scene.LIGHTDIRDIFFUSE, Laya.Shader3D.PERIOD_SCENE] }; var customTerrianShader = Laya.Shader3D.nameKey.add("...

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

28. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 85%]

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

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

29. discard property,please use transform's property instead [ 85%]

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

30. IDE创建3D示例项目(TypeScript-3D基础(TS)-快速开始一个LayaAir3D项目) [ 85%]

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

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