1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-05 13:53:38 +00:00
lovr/etc/shaders/fill.vert
2022-07-31 11:18:15 -07:00

13 lines
297 B
GLSL

#version 460
#extension GL_EXT_multiview : require
#extension GL_GOOGLE_include_directive : require
#include "lovr.glsl"
vec4 lovrmain() {
float x = -1 + float((VertexIndex & 1) << 2);
float y = -1 + float((VertexIndex & 2) << 1);
UV = vec2(x, y) * .5 + .5;
return vec4(x, y, 1., 1.);
}