From b8bbf51f27237d9036bf77250043538a65f6dbf4 Mon Sep 17 00:00:00 2001 From: 0undefined Date: Sun, 8 Feb 2026 01:36:27 +0100 Subject: Setup new framebuffer Remains to use the texture of the other framebuffer as input for new framebuffer. May require a render object. --- resources/quad.frag | 6 +----- resources/quad.vert | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'resources') diff --git a/resources/quad.frag b/resources/quad.frag index 73869cb..a23b7fa 100644 --- a/resources/quad.frag +++ b/resources/quad.frag @@ -7,9 +7,5 @@ out vec3 color; uniform sampler2D textureSampler; void main() { - vec3 c = texture(textureSampler, UV).rgb; - color = vec3( - c.x / 2 + UV.x / 2, - c.y / 2 + UV.y / 2, - c.z); + color = texture(textureSampler, UV).rgb; } diff --git a/resources/quad.vert b/resources/quad.vert index 3365748..acf00b2 100644 --- a/resources/quad.vert +++ b/resources/quad.vert @@ -11,7 +11,7 @@ void main() { gl_Position = MVP * - vec4( pos.x, 1, pos.y, 1); + vec4( pos.x, pos.y, 0, 1); UV = uv; //vec4(pos.x, 1.0, pos.y, 1.0); -- cgit v1.3