Code cleanup, simplifications, comments
This commit is contained in:
parent
e64f4cf5e4
commit
583a665990
3 changed files with 18 additions and 30 deletions
|
|
@ -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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue