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

SH-2240 Fix for projectors being double sided when shadows disabled

parent 425b1060
No related branches found
No related tags found
No related merge requests found
...@@ -149,7 +149,7 @@ void main() ...@@ -149,7 +149,7 @@ void main()
vec4 proj_tc = (proj_mat * vec4(pos.xyz, 1.0)); vec4 proj_tc = (proj_mat * vec4(pos.xyz, 1.0));
if (proj_tc.z < 0.0) if (proj_tc.z < 0.0)
{ {
//discard; discard;
} }
proj_tc.xyz /= proj_tc.w; proj_tc.xyz /= proj_tc.w;
...@@ -158,7 +158,7 @@ void main() ...@@ -158,7 +158,7 @@ void main()
float dist_atten = min(1.0-(dist2-1.0*(1.0-fa))/fa, 1.0); float dist_atten = min(1.0-(dist2-1.0*(1.0-fa))/fa, 1.0);
if (dist_atten <= 0.0) if (dist_atten <= 0.0)
{ {
//discard; discard;
} }
lv = proj_origin-pos.xyz; lv = proj_origin-pos.xyz;
......
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