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

Merge branch 'DRTVWR-559' of ssh://bitbucket.org/lindenlab/viewer into DRTVWR-559

parents 402ab8c8 1ea525a4
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -212,7 +212,7 @@ void main() ...@@ -212,7 +212,7 @@ void main()
tnorm = normalize(tnorm.xyz); tnorm = normalize(tnorm.xyz);
norm.xyz = tnorm.xyz; norm.xyz = tnorm.xyz;
#if HAS_SHADOW #ifdef HAS_SHADOW
vec2 frag = vary_fragcoord.xy/vary_fragcoord.z*0.5+0.5; vec2 frag = vary_fragcoord.xy/vary_fragcoord.z*0.5+0.5;
frag *= screen_res; frag *= screen_res;
scol = sampleDirectionalShadow(pos.xyz, norm.xyz, frag); scol = sampleDirectionalShadow(pos.xyz, norm.xyz, frag);
......
...@@ -94,7 +94,7 @@ void main() ...@@ -94,7 +94,7 @@ void main()
#endif #endif
gl_Position = vert; gl_Position = vert;
#if HAS_SHADOW #ifdef HAS_SHADOW
vary_fragcoord.xyz = vert.xyz + vec3(0,0,near_clip); vary_fragcoord.xyz = vert.xyz + vec3(0,0,near_clip);
#endif #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