Files
Pixelplanet--Pixel-VR-Player/shaders/resolve.vert
T

13 lines
365 B
GLSL

#version 450
// Fullscreen triangle: resolves the imported YCbCr frame into a mipmapped RGBA
// target so the video pipelines can sample it trilinearly (no 4K shimmer).
layout(location = 0) out vec2 vUV;
void main() {
vec2 p = vec2(float((gl_VertexIndex << 1) & 2), float(gl_VertexIndex & 2));
vUV = p;
gl_Position = vec4(p * 2.0 - 1.0, 0.0, 1.0);
}