diff options
Diffstat (limited to 'txtgameengine/builtin_shaders/texture/vertex.glsl')
-rw-r--r-- | txtgameengine/builtin_shaders/texture/vertex.glsl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/txtgameengine/builtin_shaders/texture/vertex.glsl b/txtgameengine/builtin_shaders/texture/vertex.glsl new file mode 100644 index 0000000..dd93afb --- /dev/null +++ b/txtgameengine/builtin_shaders/texture/vertex.glsl @@ -0,0 +1,12 @@ +#version 330 core + +layout(location=0) in vec3 vertexPosition_modelspace; +layout(location=1) in vec2 vertexUV; + +out vec2 UV; + +void main() { + gl_Position = vec4(vertexPosition_modelspace, 1); + UV = vertexUV; +} + |