1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-08 09:37:53 +00:00
OpenMW/files/shaders/fullscreen_tri_vertex.glsl
2023-02-05 12:30:38 -08:00

14 lines
218 B
GLSL

#version 120
uniform vec2 scaling = vec2(1.0, 1.0);
varying vec2 uv;
#include "openmw_vertex.h.glsl"
void main()
{
gl_Position = vec4(gl_Vertex.xy, 0.0, 1.0);
uv = (gl_Position.xy * 0.5 + 0.5) * scaling;
}