Thu, 21 Mar 2024 23:00:39 +0100
increase maximum possible number of 2D layers
shader/sprite_vtx.glsl | file | annotate | diff | comparison | revisions |
1.1 --- a/shader/sprite_vtx.glsl Thu Mar 21 22:23:00 2024 +0100 1.2 +++ b/shader/sprite_vtx.glsl Thu Mar 21 23:00:39 2024 +0100 1.3 @@ -10,7 +10,7 @@ 1.4 void main(void) { 1.5 vec4 pos = projection*model*vec4(position.x, position.y, 0, 1.0); 1.6 // apply depth 1.7 - pos.z = depth / -256.0; 1.8 + pos.z = depth / -1024.0; 1.9 gl_Position = pos; 1.10 texcoord = vec2(model[0].x, model[1].y)*position; 1.11 }