14 lines
219 B
GLSL
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);
|
|
}
|
|
|