Skip to content
Snippets Groups Projects
Commit d001c52c authored by David Parks's avatar David Parks
Browse files

SL-18132 Fix for errant shadow when sun shadows are disabled.

parent 6f2acc8e
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
......@@ -119,10 +119,16 @@ void main()
#if defined(HAS_SUN_SHADOW) || defined(HAS_SSAO)
vec2 scol_ambocc = texture2DRect(lightMap, vary_fragcoord.xy).rg;
#endif
#if defined(HAS_SUN_SHADOW)
float scol = max(scol_ambocc.r, diffuse.a);
float ambocc = scol_ambocc.g;
#else
float scol = 1.0;
#endif
#if defined(HAS_SSAO)
float ambocc = scol_ambocc.g;
#else
float ambocc = 1.0;
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment