terravisor/shaders/vertex.glsl

14 lines
271 B
GLSL

#version 450 core
layout(location = 0) in vec3 posAttrib;
layout(location = 1) in vec2 texCoordAttrib;
out VS_OUT {
vec3 position;
vec2 texCoord;
} vs_out;
void main() {
vs_out.position = (vec4(posAttrib, 1.0f)).xyz;
vs_out.texCoord = texCoordAttrib;
}