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

11 lines
204 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;
2018-07-15 18:18:41 +02:00
void main()
{
outColor = vec4(inColor, 0.0);
// Depth attachment does not need to be explicitly written
2018-07-15 18:18:41 +02:00
}