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

SH-1648 Fix for spot shadows being offset by sunlight vector when SSAO enabled.

parent c4c8e13a
No related branches found
No related tags found
No related merge requests found
......@@ -234,7 +234,7 @@ void main()
gl_FragColor[0] = shadow;
gl_FragColor[1] = calcAmbientOcclusion(pos, norm);
spos.xyz = shadow_pos+offset*spot_shadow_offset;
spos.xyz = shadow_pos+norm*spot_shadow_offset;
//spotlight shadow 1
vec4 lpos = shadow_matrix[4]*spos;
......
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