Changing MTKView from bgra8Unorm to rgba16Float brightens all content. Why?

I want to us rgba16Float colorPixelFormat for MTKView instead of the default of bgra8Unorm. When I made this single change, everything became brighter. Textures most noticably. I am creating my tetures with SRGB=false. The textures are noticably brighter then the original artwork.


When I use the default of bgra8Unorm the same textures with the same SRGB=false are darker and much closer to the original artwork used for the texture.


I would think that changing the underlying pixel format would have not affect. But it clearly does.


Why?


Thanks,

Doug

Replies

Try setting colorspace property to nil and check if these formats still result in different colors. My guess is that colorspace conversion is not handled properly for rgba16Float format by macOS