mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-06 14:23:34 +00:00
15 lines
355 B
GLSL
15 lines
355 B
GLSL
#version 460
|
|
#extension GL_EXT_multiview : require
|
|
#extension GL_GOOGLE_include_directive : require
|
|
|
|
#include "lovr.glsl"
|
|
|
|
void main() {
|
|
FragColor = VertexColor * Color;
|
|
float x = -1 + float((VertexIndex & 1) << 2);
|
|
float y = -1 + float((VertexIndex & 2) << 1);
|
|
FragUV = vec2(x, y) * .5 + .5;
|
|
Position = vec4(x, y, 0., 1.);
|
|
PointSize = 1.f;
|
|
}
|