Skip to content

Commit 9ea5bbe

Browse files
committed
Fix AVPro color space on Quest
1 parent 77f2a39 commit 9ea5bbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/USharpVideo/Shaders/StandardVideoCore.cginc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,12 @@ half3 VideoEmission(float2 uv)
6464

6565
float3 texColor = tex2D(_EmissionMap, uv).rgb;
6666

67+
#ifndef UNITY_COLORSPACE_GAMMA
6768
if (_IsAVProInput)
6869
{
6970
texColor = pow(texColor, 2.2f);
7071
}
72+
#endif
7173

7274
return texColor * _EmissionColor.rgb * visibility;
7375
#endif

0 commit comments

Comments
 (0)