大约有 142 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0037 秒)
...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_示例 发布时间: 20241125
...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
... //添加光照 var directionLight= new Laya.DirectionLight(); this.scene.addChild(directionLight); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( ...
来源: Laya_社区 发布时间: 20190509
...//正交投影垂直矩阵尺寸 camera.orthographicVerticalSize = 10; var directionLight = scene.addChild(new Laya.DirectionLight()); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, fu...
来源: Laya_示例 发布时间: 20241125
DirectionLight存在衰减,不符合线光源的特性 模型经线光源烘焙,线光源为屏幕下方靠近使用者的位置向屏幕射出的方向,模型亮度从下而上衰减。 附:《示例图片》 和 《复现DEMO》 附件 : --> 复现DEMO.rar 场景.rar 2019-03-15 添加评...
来源: Laya_社区 发布时间: 20190315
...)); 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_示例 发布时间: 20241125
...)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.ad...
来源: Laya_示例 发布时间: 20241125
...代码来加,没阴影出来! 1,场景中加入直射光,开阴影 directionLight.shadow = true; 2,角色设置产生阴影 roleMeshSprite.meshRender.castShadow = true; 3,场景设置接受阴影 sceneMeshSprite.meshRender.receiveShadow = true; 2017-07-14 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170714
...是场景中没有光照,物体的环境光颜色是不会显示的! var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Vector3(0.6, 0.6, 0.6); directionLight.diffu...
来源: Laya_社区 发布时间: 20170319
...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