Jump to content
 
Sign in to follow this  
akira fan

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

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);
}

 Thanks

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

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

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

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...