Fixes model water and waterfall shaders outputting color on shadow pass.

This was SVN commit r27594.
This commit is contained in:
Vladislav Belov 2023-03-28 06:51:00 +00:00
parent bd20a95d4f
commit ac3d187dcd
2 changed files with 8 additions and 0 deletions

View File

@ -71,5 +71,9 @@ void main()
t = 18.0 * max(0.0, 0.7 - v.y);
float alpha = 0.15 * waterDepth * (1.2 + t + fresnel);
#if !PASS_SHADOWS
OUTPUT_FRAGMENT_SINGLE_COLOR(vec4(applyDebugColor(color, 1.0, alpha, 0.0), alpha));
#else
OUTPUT_FRAGMENT_SINGLE_COLOR(vec4(0.0, 0.0, 0.0, 1.0));
#endif
}

View File

@ -26,5 +26,9 @@ void main()
color *= getLOS(GET_DRAW_TEXTURE_2D(losTex), v_los);
#endif
#if !PASS_SHADOWS
OUTPUT_FRAGMENT_SINGLE_COLOR(vec4(applyDebugColor(color, 1.0, texdiffuse.a, 0.0), texdiffuse.a));
#else
OUTPUT_FRAGMENT_SINGLE_COLOR(vec4(0.0, 0.0, 0.0, 1.0));
#endif
}