diff options
| author | 0undefined <oscar@nelin.dk> | 2026-02-08 00:36:27 +0000 |
|---|---|---|
| committer | 0undefined <oscar@nelin.dk> | 2026-02-08 00:37:36 +0000 |
| commit | b8bbf51f27237d9036bf77250043538a65f6dbf4 (patch) | |
| tree | 53af7e69fd86aa597833a4eec1fee7c7c12df129 /resources/quad.frag | |
| parent | 67abeb98391b5ae7bedff16d2050b1076dcde53a (diff) | |
Setup new framebuffer
Remains to use the texture of the other framebuffer as input for new
framebuffer. May require a render object.
Diffstat (limited to 'resources/quad.frag')
| -rw-r--r-- | resources/quad.frag | 6 |
1 files changed, 1 insertions, 5 deletions
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; } |
