Re: What r_gamma value do you use?
Unvanquished is an open-source FPS game featuring team-based strategy and RTS elements, pitting humans against aliens in a futuristic setting.
killing time wrote: ↑Sun Apr 30, 2023 6:36 am UTC
I guess there might be a problem with intermediate framebuffers. I assume all framebuffers have 8-bit position. The actual calculations in GLSL are floating-point so we should be fine, but stuff goes in and out of different framebuffers a number of times before going to the final output buffer.
So we would need to do the transformations every time stuff goes in or out of a framebuffer to preserve our precious precision.
But if we do OpenGL Blending framebuffers have to contain the linear values.
It looks like we don't call
glBlendFuncSeparate neither require
ARB_draw_buffers_blend, in fact our engine supports hardware that are way older than that, so maybe we don't do OpenGL blending. If we do everything in GLSL I wonder if we can write the code in a way all GLSL fp is in sRGB in input and output…
Yeah, that goodness comes from non-short light falloff and intense light bouncing. At least if the light blending is not physically correct, the light diffusion in space is more physically correct.
See Please compile your maps without -fast but with -fastbounce thread for details about this.