Skip to content
An image effect allowing you to use the Linear color space with Windows Mixed Reality.
C# ShaderLab
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
Assets Update GammaCorrection.shader Jan 22, 2019
Images Initial Commit Feb 9, 2018
ProjectSettings Initial Commit Feb 9, 2018
.gitignore Initial Commit Feb 9, 2018
LICENSE Initial commit Feb 9, 2018 Update Jan 22, 2019


Windows Mixed Reality & HoloLens (UWP) don't support the Linear Color Space. If you enable it, you'll see that the image in your HMD is darker than the preview on the screen. This is because the gamma correction is not applied.

This image effect adds the gamma correction, allowing you to use the Linear color space with your Windows Mixed Reality headset or the HoloLens. The project contains a single script or an extension for the PostProcess Stack V2.


You can take a look at the shader, it's very simple, basically it's "just" one line. If you want to learn more about the Linear/Gamma Color Spaces, please take a look at this link and especially this one.

Be careful to use this image effect have to be the last on your camera to work correctly. Oh and of course it works with Single Pass Stereo Rendering! (Instanced not supported sorry).


This project is licensed under the MIT license.

You can’t perform that action at this time.