Only do color clamp when fog is on

This commit is contained in:
Flyinghead 2018-09-02 22:57:59 +02:00
parent 96e9bce0e0
commit 228b40136f
1 changed files with 4 additions and 3 deletions

View File

@ -328,17 +328,18 @@ void main() \n\
#if pp_Offset==1 && pp_BumpMap == 0 \n\
{ \n\
color.rgb+=vtx_offs.rgb; \n\
color = fog_clamp(color); \n\
if (pp_FogCtrl==1) \n\
{ \n\
color = fog_clamp(color); \n\
color.rgb=mix(color.rgb,sp_FOG_COL_VERT.rgb,vtx_offs.a); \n\
} \n\
} \n\
#else \n\
color = fog_clamp(color); \n\
#endif\n\
} \n\
#endif\n\
#if pp_FogCtrl==0 \n\
{ \n\
color = fog_clamp(color); \n\
color.rgb=mix(color.rgb,sp_FOG_COL_RAM.rgb,fog_mode2(gl_FragCoord.w)); \n\
} \n\
#endif\n\