9 lines
128 B
GLSL
9 lines
128 B
GLSL
#version 430
|
|
|
|
uniform mat4 MVP;
|
|
|
|
layout(location = 0) out float FragmentDepth;
|
|
|
|
void main() {
|
|
FragmentDepth = gl_FragCoord.z;
|
|
} |