Implement textured walls

This commit is contained in:
jgk
2021-03-21 20:09:11 +01:00
parent 23fbee3374
commit e6c76da6b3
4 changed files with 25 additions and 6 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ if (isLHS (p1.xy - lightPos, p2.xy - lightPos) < 0)
lum = radLum.y;
float rad = radLum.x;
vec4 p3 = vec4 (p1.xy,-0.2,1);
vec4 p4 = vec4 (p2.xy,-0.2,1);
vec4 p3 = vec4 (p1.xy,-0.5,1);
vec4 p4 = vec4 (p2.xy,-0.5,1);
vec2 d1 = p1.xy - lightPos;
vec2 d2 = p2.xy - lightPos;