Use vertex pulling for wall shadows

This commit is contained in:
2025-11-10 21:33:56 +00:00
parent 1a85d9d562
commit 36d5edc0a6
5 changed files with 47 additions and 10 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ void main()
{
vec4 pp = data[gl_VertexID / 6].pospos;
int j = indices[gl_VertexID % 6];
float z = (j > 1.5 ? 5000 : 100);
float z = (j / 2 > 0.5 ? 5000 : 100);
vec2 xy = (j % 2 > 0 ? pp.xy : pp.zw);
gl_Position = theMat * vec4(xy,z,1);
}