- Home /
Question by
callebo_FK · May 30, 2018 at 01:48 PM ·
shaderfog
Disable fog in Surface Shader
I need to disable fog in my surface shader, how is this done nowadays?
I've tried to add #pragma nofog, Fog { Mode Off } , made sure there is no "#pragma multi_compile_fog", UNITY_FOG_COORDS, UNITY_TRANSFER_FOG or UNITY_APPLY_FOG. All this from a new Surface Shader, so there is nothing inherently wrong with the shader.
The fog is Unitys standard.
Edit: I add "#pragma nofog" (research) to a brand new surface shader, but it does nothing. I also tried adding Fog { Mode Off } (research) . I know I've done it in the right places. Does anyone know how to do it? Is it possible anymore? I'm using Unity 2017.3.1p4
Comment