Draw walls using vertex pulling
This commit is contained in:
@@ -12,5 +12,6 @@ void main()
|
||||
int j = indices[gl_VertexID % 6];
|
||||
float z = (j > 1.5 ? 5000 : 0);
|
||||
vec2 xy = (j % 2 > 0 ? pp.xy : pp.zw);
|
||||
gl_Position = theMat * vec4( xy, z, 1);
|
||||
vPos = vec4( xy, z, 1);
|
||||
gl_Position = theMat * vPos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user