[]场景雾化 挡不住天空盒?????????????
场景雾化 居然挡不住天空盒......................
代码如下
camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY;
var skyBox: Laya.SkyBox = new Laya.SkyBox();
camera.sky = skyBox;
skyBox.textureCube = Laya.TextureCube.load("res/skyBox1/skyCube.ltc");
this.sceneMap.enableFog = true;
this.sceneMap.fogColor = new Laya.Vector3(0.6,0.3,0);
this.sceneMap.fogStart = 5;
this.sceneMap.fogRange = 50;
请问 怎么设置才能让雾 也对天空盒起作用?
代码如下
camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY;
var skyBox: Laya.SkyBox = new Laya.SkyBox();
camera.sky = skyBox;
skyBox.textureCube = Laya.TextureCube.load("res/skyBox1/skyCube.ltc");
this.sceneMap.enableFog = true;
this.sceneMap.fogColor = new Laya.Vector3(0.6,0.3,0);
this.sceneMap.fogStart = 5;
this.sceneMap.fogRange = 50;
请问 怎么设置才能让雾 也对天空盒起作用?
要回复问题请先登录
2 个回复
Aar0n
赞同来自:
天心
赞同来自: