18 lines
368 B
GLSL
18 lines
368 B
GLSL
#version 450
|
|
#pragma shader_stage(vertex)
|
|
|
|
layout(location=0) in vec4 position;
|
|
layout(location=1) in vec4 color;
|
|
|
|
layout(location=0) out vec3 outColor;
|
|
|
|
layout(binding=0) uniform Camera {
|
|
mat4 model;
|
|
mat4 view;
|
|
mat4 proj;
|
|
} ubo;
|
|
|
|
void main() {
|
|
gl_Position = ubo.proj * ubo.view * ubo.model * vec4(position.xyz, 1.0f);
|
|
outColor = vec3(color.rgb);
|
|
} |