mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
220 B
GLSL
14 lines
220 B
GLSL
3 years ago
|
#version 120
|
||
|
|
||
2 years ago
|
uniform vec2 scaling = vec2(1.0, 1.0);
|
||
|
|
||
3 years ago
|
varying vec2 uv;
|
||
|
|
||
2 years ago
|
#include "lib/core/vertex.h.glsl"
|
||
3 years ago
|
|
||
3 years ago
|
void main()
|
||
|
{
|
||
|
gl_Position = vec4(gl_Vertex.xy, 0.0, 1.0);
|
||
2 years ago
|
uv = (gl_Position.xy * 0.5 + 0.5) * scaling;
|
||
3 years ago
|
}
|