mausimus / ShaderGlass

Overlay for running GPU shaders on top of Windows desktop
GNU General Public License v3.0
898 stars 35 forks source link

ignore sRGB in png files since gamma is assumed to be 2.2 otherwise #59

Closed lonestarr closed 11 months ago

lonestarr commented 1 year ago

all my png files are darker without this fix, reason is "gAMA chunks in PNGs are ignored. If the sRGB chunk is found, it is assumed to be gamma 2.2"

see : https://github.com/microsoft/DirectXTK/wiki/WICTextureLoader

and others struggling with that issue : https://stackoverflow.com/questions/39634189/load-texture-as-rgb-not-srgb-in-directx11-using-wic#comment66623886_39644302