13 lines
249 B
Text
13 lines
249 B
Text
|
#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);
|
||
|
}
|