leocad/resources/shaders/unlit_texture_decal_vs.glsl

12 lines
272 B
Text
Raw Normal View History

2018-11-23 01:13:02 +01:00
LC_VERTEX_INPUT vec3 VertexPosition;
LC_VERTEX_INPUT vec2 VertexTexCoord;
LC_VERTEX_OUTPUT vec2 PixelTexCoord;
uniform mat4 WorldViewProjectionMatrix;
void main()
{
gl_Position = WorldViewProjectionMatrix * vec4(VertexPosition, 1.0);
PixelTexCoord = VertexTexCoord;
}