Files
stk-code_catmod/data/shaders/objectref_pass1.frag
2014-01-19 19:31:00 +01:00

15 lines
240 B
GLSL

#version 130
uniform sampler2D tex;
noperspective in vec3 nor;
in vec2 uv;
out vec4 NormalDepth;
void main() {
vec4 col = texture(tex, uv);
if (col.a < 0.5)
discard;
NormalDepth = vec4(0.5 * normalize(nor) + 0.5, gl_FragCoord.z);
}