Draw walls using vertex pulling

This commit is contained in:
2025-11-10 19:05:54 +00:00
parent 1546caa6a3
commit 1f01147821
8 changed files with 68 additions and 8 deletions
-1
View File
@@ -20,7 +20,6 @@ void main()
vec2 d = vec2(p1.xy - p2.xy);
float dist = distance(p1xy,p2xy);
float tcoordx = dist / 50;
vec4 norm = vec4( d.y, -d.x, 0, 0);
gPos = p1;
gl_Position = vec4(theMat * p1);
gTexCoords = vec3 (0,0,tcoordz);