[Solved]Terrain and Fog,has a bug?
-
- Gnoblar
- Posts: 7
- Joined: Sat Sep 20, 2014 4:30 am
- Location: China
[Solved]Terrain and Fog,has a bug?
Hello everyone, if i first create SceneManager and setFog, then create terrain, the fog look normal. But if i first create SceneManager and terrain, then setFog, i will not see fog.But if i then reset terrain's layer texture, the fog will apper.What matter?What I need do after create terrain can make fog apper?Sorry i am Chinese,my english is poor.
Last edited by mynamepfd on Tue Nov 04, 2014 7:17 am, edited 1 time in total.
-
- Gremlin
- Posts: 153
- Joined: Tue Jun 09, 2009 9:31 am
- Location: Russia
- x 12
- Contact:
Re: Terrain and Fog,has a bug?
I met the same behavior of terrain and fog. If I set fog before terrain, I can change it parameters later, and this will affect the terrain. But not vice versa.
-
- Gnoblar
- Posts: 7
- Joined: Sat Sep 20, 2014 4:30 am
- Location: China
Re: Terrain and Fog,has a bug?
yes. because i am making a editor, i find this problem. you think is a bug?Kenshido wrote:I met the same behavior of terrain and fog. If I set fog before terrain, I can change it parameters later, and this will affect the terrain. But not vice versa.
- c6burns
- Beholder
- Posts: 1512
- Joined: Fri Feb 22, 2013 4:44 am
- Location: Deep behind enemy lines
- x 138
Re: Terrain and Fog,has a bug?
It is not a bug. You need to have fog enabled at the time the TerrainMaterialGenerator runs or else the shaders will not be built with fog options.