大约有 186 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0033 秒)
Laya_社区(75) Laya2.0_文档(27) Laya3.0_api(24) Laya_示例(22) laya_api(13) Laya2.0_api(12) Laya3.0_文档(10) Laya2.0_示例(3)
...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
...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
...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
...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
...图2-4) 阴影除了设置3D基础对象的MeshRenderer,还需要保证Direction Light的Shadow Mode不为None。 2.4 添加组件 每个3D基础对象,都可以添加组件来实现高级的功能,通过对立方体添加3D物理组件 Rigidbody3D ,勾选重力属性,最后添加碰撞...
来源: Laya3.0_文档 发布时间: 20241014
...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_示例 发布时间: 20241125
...辑,在 params.allowfullscreen=”true”;后面加上params.wmode = "direct"; 但是我这边还出现了其他错误 1. FlashInit.as中的RunDriver.newWebGLContext报错,因为RunDriver里没有newWebGLContext这个属性 2. 无限循环报错 Browser 234行调用__init__(); Browser 73行调...
来源: Laya_社区 发布时间: 20170629
...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
...(-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
...光的情况下去增加点光源去布光应该就好了 //方向光 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