File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Packages/webxr-interactions Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
### Added
10
10
- An option to set pickup buttons in ControllerInteraction.
11
11
12
+ ### Fixed
13
+ - Lighting after threshold test in ChromaKeyUnlit.
14
+
12
15
## [ 0.16.3] - 2023-02-08
13
16
### Fixed
14
17
- SceneHitTest right controller issue.
Original file line number Diff line number Diff line change @@ -58,13 +58,14 @@ Shader "WebXR Mixed Reality Capture/Chroma Key Unlit" {
58
58
fixed4 frag (v2f i) : SV_Target
59
59
{
60
60
fixed4 ligthing = tex2D (_LightingTex, i.texcoord2);
61
- fixed4 color = tex2D (_MainTex, i.texcoord) * ligthing * _Color;
61
+ fixed4 color = tex2D (_MainTex, i.texcoord) * _Color;
62
62
if (_ThresholdMin.r <= color.r && color.r <= _ThresholdMax.r
63
63
&&_ThresholdMin.g <= color.g && color.g <= _ThresholdMax.g
64
64
&&_ThresholdMin.b <= color.b && color.b <= _ThresholdMax.b)
65
65
{
66
66
color.a = 0 ;
67
67
}
68
+ color = color * ligthing;
68
69
UNITY_APPLY_FOG (i.fogCoord, color);
69
70
return color;
70
71
}
You can’t perform that action at this time.
0 commit comments