akira fan Posted February 14, 2020 Share Posted February 14, 2020 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 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now