41:df81d493716e | 42:cc912686f663 |
---|---|
8 uniform float depth; | 8 uniform float depth; |
9 | 9 |
10 void main(void) { | 10 void main(void) { |
11 vec4 pos = projection*model*vec4(position.x, position.y, 0, 1.0); | 11 vec4 pos = projection*model*vec4(position.x, position.y, 0, 1.0); |
12 // apply depth | 12 // apply depth |
13 pos.z = depth / -256.0; | 13 pos.z = depth / -1024.0; |
14 gl_Position = pos; | 14 gl_Position = pos; |
15 texcoord = vec2(model[0].x, model[1].y)*position; | 15 texcoord = vec2(model[0].x, model[1].y)*position; |
16 } | 16 } |