legacyclonk / LegacyClonk

The LegacyClonk engine and the c4group command line tool.
https://clonkspot.org/lc-en
Other
81 stars 18 forks source link

StdGL: Move gamma calculation to shaders if shaders are enabled #93

Closed Fulgen301 closed 1 week ago

Fulgen301 commented 1 year ago

unknown

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:

Somebodyisnobody commented 1 year 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?

Fulgen301 commented 1 year ago

The current behavior - all other components (e.g. the shaders) log an error and exit the game if they cannot be created.