OoliteProject / oolite

The main Oolite repository.
https://www.oolite.space
544 stars 70 forks source link

GUI background and foreground images are now treated as having SRGBA internal format #428

Closed AnotherCommander closed 1 year ago

AnotherCommander commented 1 year ago

GUI textures like backgrounds, foregrounds etc. are not processed in any way after having been loaded. However, they are subject to tone nmapping and gamma correction at the end of the render pass because they are part of the final scene texture. So we need to declare them as SRGBA textures when they are loaded so that OpenGL will automatically convert them to linear space and the subsequent tone mapping and gamma correction shader operations will not result in heavy distortion of their colors due to over-correction.

This should fix #412.