lovr/etc/shaders/fill.vert

13 lines
297 B
GLSL
Raw Normal View History

2022-06-25 02:59:48 +00:00
#version 460
#extension GL_EXT_multiview : require
#extension GL_GOOGLE_include_directive : require
#include "lovr.glsl"
2022-07-31 18:18:15 +00:00
vec4 lovrmain() {
2022-06-25 02:59:48 +00:00
float x = -1 + float((VertexIndex & 1) << 2);
float y = -1 + float((VertexIndex & 2) << 1);
UV = vec2(x, y) * .5 + .5;
2022-07-31 18:18:15 +00:00
return vec4(x, y, 1., 1.);
2022-06-25 02:59:48 +00:00
}