14 lines
327 B
Plaintext
14 lines
327 B
Plaintext
|
#version 330 core
|
||
|
|
||
|
// Input vertex data, different for all executions of this shader.
|
||
|
layout(location = 0) in vec3 Position_modelspace;
|
||
|
|
||
|
// Output data ; will be interpolated for each fragment.
|
||
|
out vec2 UV;
|
||
|
|
||
|
void main(){
|
||
|
gl_Position = vec4(Position_modelspace,1);
|
||
|
UV = (Position_modelspace.xy+vec2(1,1))/2.0;
|
||
|
}
|
||
|
|