Simplified and cleaned up sub pass setup, additional comments

This commit is contained in:
saschawillems 2018-07-15 21:15:03 +02:00
parent 478aae0548
commit e64f4cf5e4
2 changed files with 2 additions and 4 deletions

View file

@ -2,13 +2,11 @@
layout (location = 0) in vec3 inColor;
layout (location = 0) out vec4 outSwapChainColor;
layout (location = 1) out vec4 outColor;
layout (location = 2) out float outDepth;
layout (location = 0) out vec4 outColor;
layout (location = 1) out float outDepth;
void main()
{
outSwapChainColor = vec4(0.0);
outColor = vec4(inColor, 0.0);
outDepth = gl_FragDepth;
}