Simplified and cleaned up sub pass setup, additional comments
This commit is contained in:
parent
478aae0548
commit
e64f4cf5e4
2 changed files with 2 additions and 4 deletions
|
|
@ -2,13 +2,11 @@
|
||||||
|
|
||||||
layout (location = 0) in vec3 inColor;
|
layout (location = 0) in vec3 inColor;
|
||||||
|
|
||||||
layout (location = 0) out vec4 outSwapChainColor;
|
layout (location = 0) out vec4 outColor;
|
||||||
layout (location = 1) out vec4 outColor;
|
layout (location = 1) out float outDepth;
|
||||||
layout (location = 2) out float outDepth;
|
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
outSwapChainColor = vec4(0.0);
|
|
||||||
outColor = vec4(inColor, 0.0);
|
outColor = vec4(inColor, 0.0);
|
||||||
outDepth = gl_FragDepth;
|
outDepth = gl_FragDepth;
|
||||||
}
|
}
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue