lovr/etc/shaders/fill.vert

15 lines
351 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"
void main() {
Color = PassColor * VertexColor;
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;
Position = vec4(x, y, 1., 1.);
2022-06-25 02:59:48 +00:00
PointSize = 1.f;
}