shader/sprite_vtx.glsl

changeset 42
cc912686f663
parent 41
df81d493716e
     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  }

mercurial