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() {
|
2022-07-07 05:54:56 +00:00
|
|
|
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);
|
2022-07-07 05:54:56 +00:00
|
|
|
UV = vec2(x, y) * .5 + .5;
|
2022-07-17 19:37:59 +00:00
|
|
|
Position = vec4(x, y, 1., 1.);
|
2022-06-25 02:59:48 +00:00
|
|
|
PointSize = 1.f;
|
|
|
|
}
|