armory/raw/forward/depthmap.frag.glsl
2016-03-15 11:29:53 +01:00

17 lines
220 B
GLSL

#version 450
#ifdef GL_ES
precision mediump float;
#endif
#ifdef _NMTex
#define _AMTex
#endif
in vec4 position;
void main() {
float depth = position.z / position.w;
gl_FragColor = vec4(depth, 0.0, 0.0, 1.0);
}