vktutorial/shaders/simple_shader.frag

13 lines
229 B
GLSL
Raw Normal View History

2024-02-21 13:28:50 +08:00
#version 450
layout (location = 0) in vec3 fragColor;
2024-02-21 13:28:50 +08:00
layout (location = 0) out vec4 outColor;
2024-04-03 21:28:08 +08:00
layout(push_constant) uniform Push{
mat4 transform;
2024-04-03 21:28:08 +08:00
vec3 color;
} push;
2024-02-21 13:28:50 +08:00
void main(){
outColor = vec4(fragColor, 1.0);
2024-02-21 13:28:50 +08:00
}