GRK_game_scene/cw 9/shaders/shader_laser.vert

18 lines
361 B
GLSL
Raw Normal View History

2023-01-21 20:37:04 +01:00
#version 430 core
layout(location = 0) in vec4 vertexPosition;
layout(location = 1) in vec4 vertexColor;
uniform mat4 transformation;
flat out vec4 color;
out vec4 pos_local;
out vec4 pos_global;
void main()
{
color = vertexColor;
pos_local = vertexPosition;
pos_global = transformation * vertexPosition;
gl_Position = transformation * vertexPosition;
}