procedural-3d-engine/data/shaders/inputattachments/attachmentwrite.frag

12 lines
212 B
GLSL
Raw Normal View History

2018-07-15 18:18:41 +02:00
#version 450
layout (location = 0) in vec3 inColor;
layout (location = 0) out vec4 outColor;
layout (location = 1) out float outDepth;
2018-07-15 18:18:41 +02:00
void main()
{
outColor = vec4(inColor, 0.0);
outDepth = gl_FragDepth;
}