大约有 9 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0024 秒)
...1/skyBox.lmat", Laya.Handler.create(this, function(mat) { //设置相机的清除标识为天空盒 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //获取相机的天空渲染器 var skyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = Laya.SkyBox.instance; //设置天...
来源: Laya2.0_文档 发布时间: 20210715
...1/skyBox.lmat", Laya.Handler.create(this, function(mat) { //设置相机的清除标识为天空盒 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //获取相机的天空渲染器 var skyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = Laya.SkyBox.instance; //设置天...
来源: Laya2.0_文档 发布时间: 20210715
...", Handler.create(this, function(mat:BaseMaterial):void { //设置相机的清除标识为天空盒 camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //获取相机的天空渲染器 var skyRenderer:SkyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = SkyBox.instance; //设置天...
来源: Laya2.0_文档 发布时间: 20210715
...exture(512, 512); //渲染顺序 renderTargetCamera.renderingOrder = -1; //清除标记 renderTargetCamera.clearFlag = BaseCamera.CLEARFLAG_SKY; ``` 在LayaAir引擎中渲染顺序是越小渲染优先度越高。 将相机渲染的内容作为一张纹理赋予立方体的材质 ```typescript //设...
来源: Laya2.0_文档 发布时间: 20210715
...exture(512, 512); //渲染顺序 renderTargetCamera.renderingOrder = -1; //清除标记 renderTargetCamera.clearFlag = BaseCamera.CLEARFLAG_SKY; ``` 在LayaAir引擎中渲染顺序是越小渲染优先度越高。 将相机渲染的内容作为一张纹理赋予立方体的材质 ```typescript //设...
来源: Laya2.0_文档 发布时间: 20210715
...exture(512, 512); //渲染顺序 renderTargetCamera.renderingOrder = -1; //清除标记 renderTargetCamera.clearFlag = BaseCamera.CLEARFLAG_SKY; ``` 在LayaAir引擎中渲染顺序是越小渲染优先度越高。 将相机渲染的内容作为一张纹理赋予立方体的材质 ```typescript //设...
来源: Laya2.0_文档 发布时间: 20210715
...ne); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transf...
来源: Laya2.0_文档 发布时间: 20210715
...ne); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transf...
来源: Laya2.0_文档 发布时间: 20210715
...机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //清除摄像机的标记 camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vector3(1, 1, 1); direc...
来源: Laya2.0_文档 发布时间: 20210715