smrendererv3/SMCode/SM.Base/Shader/Files/default.vert
Michel Fedde a603ecc417 18.09.2020
+ Textures
~ Changed 2D coordnate system to lower right as XY+
2020-09-19 15:04:04 +02:00

14 lines
No EOL
239 B
GLSL

#version 330
layout(location = 0) in vec3 aPos;
layout(location = 1) in vec2 aTex;
uniform mat4 MVP;
uniform mat4 ModelMatrix;
out vec2 vTexture;
void main() {
vTexture = aTex;
gl_Position = MVP * ModelMatrix * vec4(aPos, 1);
}