- Home /
fog masking
Hello there, i've got a big city objects in the background and i need to set a fog around the player, so the city does not affect by the fog, is there a way to mask the city layer somehow?
Comment
Best Answer
Answer by Diekeke · Jun 27, 2013 at 12:30 AM
I don't know a way to do it with layers, but you can edit your city material(s) so that they can't be affected by fog. Just add this line in the SubShader section of your shader: Fog {Mode Off}. E.g.:
SubShader {
Tags { "RenderType"="Opaque" } //Or whatever
LOD 200 //Or whatever
Fog {Mode Off}
Your answer
Follow this Question
Related Questions
Disabling fog for a particular camera 2 Answers
How to turn on fog on this shader 0 Answers
How to create a map for a limited area 1 Answer
Shader: Masked Tint with Transparency 0 Answers