大约有 142 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0036 秒)
...0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya...
来源: Laya_示例 发布时间: 20241125
directionLight.direction代码警告提示 定向光设置 directionLight.direction = new Laya.Vector3(-.3, -1, -1); 会提示 Warning: discard property,please use transform's property instead. 去掉就不会, 设置transform会报错 2018-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180112
Shader中的 u_DirectionLight.direction 怎么用啊? Laya3D中 shader 我需要获取平行光方向, 我看文档是 u_DirectionLight.direction, 但是我初始化 uniformMap 的时候到底需不需要加 "." 呢? 在顶点着色器中我 通过 uniform vec3 u_DirectionLight.directio...
来源: Laya_社区 发布时间: 20200520
...)); 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()); 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
...0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var textureCube = Laya.TextureCube.load("../../res/threeD...
来源: Laya_示例 发布时间: 20241125
...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
...ctor3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var completeHandler = Laya.Handler.create(this, onCo...
来源: Laya_示例 发布时间: 20241125
...)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); var directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); Laya.loader.create("../../res/threeDimen/staticModel...
来源: Laya_示例 发布时间: 20241125
...ctor3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.direction = new Laya.Vector3(1, -1, 0); var dude = scene.addChild(Laya.Sprite3D.load("../../res/thre...
来源: Laya_示例 发布时间: 20241125