Closed Fulgen301 closed 1 week ago
[...] if it fails, the game will start with a black screen with nothing in the logs indicating an error.
Is this the desired or current behaviour?
The current behavior - all other components (e.g. the shaders) log an error and exit the game if they cannot be created.
GLSL shaders now do the gamma calculation. For this purpose, the gamma ramp is directly copied into a 256x3 texture. The old way of setting the system's gamma ramp directly is still used for the non-shader code path for older systems.
TODO:
DrawQuadDw
looks weird with certain gamma values, e.g. the example given in the docs.Graphics.DisableGamma
properly - the shader currently still samples the gamma texture even if gamma is disabled.DisableGamma
should disable any gamma-related code entirely.