VoxelEngine/passthroughvertex.glsl

13 lines
249 B
Text
Raw Normal View History

2017-08-27 12:51:26 +02:00
#version 410
layout(location = 0) in vec3 in_position;
//color will be used for texcoords instead
layout(location = 1) in vec3 MyInColor;
layout(location = 0) out vec2 UV;
void main() {
UV = MyInColor.xy;
gl_Position = vec4(in_position,1.0);
}