Adapted Escape the Dawn engine.
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#version 430
|
||||
|
||||
uniform mat4 MVP;
|
||||
|
||||
layout(location = 0) out float FragmentDepth;
|
||||
|
||||
void main() {
|
||||
FragmentDepth = gl_FragCoord.z;
|
||||
}
|
||||
Reference in New Issue
Block a user