From 300e5632038a2950f6d22e29da4dd1661ae9c3c1 Mon Sep 17 00:00:00 2001 From: Sasha Date: Fri, 14 Apr 2023 19:41:10 +0100 Subject: [PATCH] i just had this change here idk what it does xd --- shaders/composite8.fsh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/shaders/composite8.fsh b/shaders/composite8.fsh index 7561d5b..3087cce 100644 --- a/shaders/composite8.fsh +++ b/shaders/composite8.fsh @@ -59,6 +59,7 @@ uniform float frameTimeCounter; uniform float viewHeight; uniform float viewWidth; uniform int frameCounter; +uniform int hideGUI; uniform int framemod8; uniform vec3 previousCameraPosition; uniform mat4 gbufferPreviousModelView; @@ -400,9 +401,13 @@ void main() { #ifndef SPLIT_RENDER #ifdef SCREENSHOT_MODE - - vec4 color = TAA_hq_render(); - gl_FragData[0] = color; + if(hideGUI >= 1){ + vec4 color = TAA_hq_render(); + gl_FragData[0] = color; + } else { + vec3 color = clamp(fp10Dither(texture2D(colortex3,texcoord).rgb,triangularize(interleaved_gradientNoise())),0.,65000.); + gl_FragData[0].rgb = color; + } #else