Code cleanup, simplifications, comments

This commit is contained in:
saschawillems 2018-07-17 19:00:55 +02:00
parent e64f4cf5e4
commit 583a665990
3 changed files with 18 additions and 30 deletions

View file

@ -3,10 +3,9 @@
layout (location = 0) in vec3 inColor;
layout (location = 0) out vec4 outColor;
layout (location = 1) out float outDepth;
void main()
{
outColor = vec4(inColor, 0.0);
outDepth = gl_FragDepth;
// Depth attachment does not need to be explicitly written
}