Jump to content

[SRWorks] Fix the issue that see-thru screen is too bright when using Unity plugin

akira fan

Recommended Posts

If you use Linear Color Space for your Unity project, the see-thru screen will be too bright.

You can use GammaToLinearSpace() in StencilUnlitTexture.shader(ViveSR\Shaders\Resources\StencilUnlitTexture.shader) to fix this issue.

Here is the code snippet

float4 frag (fInput fIn) : SV_Target
    return float4(GammaToLinearSpace(tex2D(_MainTex, fIn.uvCoord).rgb), 1);


@Jad @Daniel_Y @zzy @Andy.YC_Wang @Sean_Su

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...