grafika_komputerowa/grk/project/shaders/particle.vert

15 lines
281 B
GLSL
Raw Normal View History

2024-02-02 21:31:27 +01:00
#version 330 core
layout (location = 0) in vec3 inPosition;
out vec3 vertexColor;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
uniform vec3 color;
void main() {
gl_Position = projection * view * model * vec4(inPosition, 1.0);
vertexColor = color;
}