Washed out camera image and how to fix it

So when switching to linear color space the camera background gets washed out.
I modified the background shaders so the camera image gets transformed correctly back to Gamma Space and looks correct.

The Shaders are located under ARDK/Rendering/Ressources
ARKitFrame and ARCoreFrame are the ones that need to be replaced with the version below.

ARCoreFrame.shader (5.4 KB)
ARKitFrame.shader (5.2 KB)

The Camera Image now should be looking correct again and you still can use all the Post Processing stuff why you probably even changed to linear in the first place :wink:

The shaders can be replaced even if you use gamma, these have shader defines and will switch automatically to gamma or linear behaviour.
Also. I think this switching should be implemented in the ARDK Master build :slight_smile:

1 Like

Found a bug inside the ARKitFrame Shader.
The dark color values where undershooting resulting in hot pixels because of overflow.
(Metal is just so weird)
So I clamped the color output at the end.
So here is the corrected ARKit Shader:
ARKitFrame.shader (5.3 KB)

2 Likes