made screenshot mode take hideGUI into account

This commit is contained in:
Sasha 2023-07-09 12:14:45 +01:00
parent a943c1dc1c
commit 7207990604

View File

@ -77,6 +77,7 @@ uniform vec2 texelSize;
uniform float frameTimeCounter;
uniform float viewHeight;
uniform float viewWidth;
uniform int hideGUI;
uniform int frameCounter;
uniform int framemod8;
uniform vec3 previousCameraPosition;
@ -457,8 +458,13 @@ void main() {
#ifdef SCREENSHOT_MODE
if(hideGUI > 0) {
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