opengl-playground/imgui-submodule/imgui/examples/shaders/textured-rectangle-vertex.glsl
2020-03-21 22:38:10 +01:00

11 lines
245 B
GLSL

#version 330 core
layout (location = 0) in vec2 inputVertex;
uniform mat4 model_matrix;
uniform mat4 projection_view_matrix;
void main()
{
gl_Position = projection_view_matrix * model_matrix * vec4(inputVertex.x , inputVertex.y, 0.0, 1.0);
}