Tweeks and fixes

This commit is contained in:
mcrcortex
2024-01-30 11:13:48 +10:00
parent 23c8c9a072
commit 10bb73adf6
6 changed files with 29 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ void main() {
ivec3 pos = (((ipos<<detail)-baseSectionPos)<<5);
pos += aabbOffset;
pos -= (1<<detail);
pos += (ivec3(gl_VertexID&1, (gl_VertexID>>2)&1, (gl_VertexID>>1)&1)*(size+1))*(1<<detail);
pos += (ivec3(gl_VertexID&1, (gl_VertexID>>2)&1, (gl_VertexID>>1)&1)*(size+2))*(1<<detail);
gl_Position = MVP * vec4(vec3(pos),1);