change height

This commit is contained in:
mcrcortex
2025-05-02 16:46:04 +10:00
parent b064032d8f
commit b78d389a06

View File

@@ -19,7 +19,7 @@ void main() {
ivec3 cubeCornerI = ivec3(gl_VertexID&1, (gl_VertexID>>2)&1, (gl_VertexID>>1)&1);
//Expand the y height to be big (will be +- 8192)
//TODO: make it W.R.T world height and offsets
cubeCornerI.y = cubeCornerI.y*32-16;
cubeCornerI.y = cubeCornerI.y*1024-512;
gl_Position = MVP * vec4(vec3(cubeCornerI+origin)*16, 1);
gl_Position.z -= 0.0001f;
}