大约有 69 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0028 秒)
...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
...)); 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
...除) | 变量名 | 描述 | | -------------------------- | ------ | | u_DirectionLight.color | 平行光的颜色 | | u_DirectionLight.direction | 平行光的方向 | | u_DirationLightCount | 平行光的数量 | > 点光相关(老版本,逐步会去除) | 变量名 | 描述 | | -----------...
来源: Laya2.0_文档 发布时间: 20210715
...除) | 变量名 | 描述 | | -------------------------- | ------ | | u_DirectionLight.color | 平行光的颜色 | | u_DirectionLight.direction | 平行光的方向 | | u_DirationLightCount | 平行光的数量 | > 点光相关(老版本,逐步会去除) | 变量名 | 描述 | | -----------...
来源: Laya2.0_文档 发布时间: 20210715
...角度不对的原因 菜鸟注意 ts 1.4 添加一盏灯光 var directionLight =scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.ambientColor = new Laya.Vector3(0.7, 0.6, 0.6); directionLight.specularColor = new Lay...
来源: Laya_社区 发布时间: 20161012
...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
...除) | 变量名 | 描述 | | -------------------------- | ------ | | u_DirectionLight.color | 平行光的颜色 | | u_DirectionLight.direction | 平行光的方向 | | u_DirationLightCount | 平行光的数量 | > 点光相关(老版本,逐步会去除) | 变量名 | 描述 | | -----------...
来源: Laya2.0_文档 发布时间: 20210715
...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
...错 Laya.stage.frameRate = "slow"下,在场景中增加方向光,进行directionLight.direction = new Laya.Vector3(-0.2, -1,-0.45);设置的时候,会概率性的出现报错,如图示:注释掉directionLight.direction 的改变或者Laya.stage.frameRate = "fast"下则不会出现报错,...
来源: Laya_社区 发布时间: 20190617