We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be2a2cb commit d4608b7Copy full SHA for d4608b7
Packages/webxr-interactions/Runtime/Shaders/ChromaKeyUnlit.shader
@@ -58,13 +58,14 @@ Shader "WebXR Mixed Reality Capture/Chroma Key Unlit" {
58
fixed4 frag (v2f i) : SV_Target
59
{
60
fixed4 ligthing = tex2D(_LightingTex, i.texcoord2);
61
- fixed4 color = tex2D(_MainTex, i.texcoord) * ligthing * _Color;
+ fixed4 color = tex2D(_MainTex, i.texcoord) * _Color;
62
if (_ThresholdMin.r <= color.r && color.r <= _ThresholdMax.r
63
&&_ThresholdMin.g <= color.g && color.g <= _ThresholdMax.g
64
&&_ThresholdMin.b <= color.b && color.b <= _ThresholdMax.b)
65
66
color.a = 0;
67
}
68
+ color = color * ligthing;
69
UNITY_APPLY_FOG(i.fogCoord, color);
70
return color;
71
0 commit comments