14 lines
189 B
GLSL
14 lines
189 B
GLSL
|
#version 120
|
||
|
|
||
|
uniform vec2 uvScale;
|
||
|
|
||
|
varying vec3 vertex;
|
||
|
varying vec2 uv;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
gl_Position = gl_Vertex;
|
||
|
vertex = gl_Position.xyz;
|
||
|
uv = uvScale * (0.5 + vertex.xy / 2.0);
|
||
|
}
|