Skip to content

Commit

Permalink
[AI/HS2] Reapply the body alpha mask texture after loading new body (#…
Browse files Browse the repository at this point in the history
…290)

This change addresses an issue specific to AI and HS2 in which loading an uncensor led to the body alpha mask texture getting lost in the process; the change simply reapplies the texture in question before the updateAlphaMask flag is set to true. This was already in place for KK, EC and KKS.
ChaShader.AlphaMask in AI and HS2 is the equivalent to ChaShader._AlphaMask in KK, EC and KKS.
  • Loading branch information
elusivecake authored Nov 24, 2024
1 parent 6f61c80 commit 04b3561
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/UncensorSelector.Core/Core.UncensorSelector.Controller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ private IEnumerator ReloadCharacterUncensor()

#if KK || EC || KKS
ChaControl.customMatBody.SetTexture(ChaShader._AlphaMask, ChaControl.texBodyAlphaMask);
#elif AI || HS2
ChaControl.customMatBody.SetTexture(ChaShader.AlphaMask, ChaControl.texBodyAlphaMask);
#endif
ChaControl.updateAlphaMask = true;
}
Expand Down

0 comments on commit 04b3561

Please sign in to comment.