stk-code_catmod/data/shaders/objectref_pass1.frag
2014-01-19 18:53:35 +01:00

14 lines
219 B
GLSL

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