1
0
mirror of https://github.com/xiaopeng12138/MaiDXR.git synced 2024-11-30 21:47:16 +01:00

fix hand transparency issue

This commit is contained in:
xpeng 2022-08-27 02:28:53 +02:00
parent 9d02f0585e
commit c7c8f404f2
4 changed files with 5 additions and 20 deletions

View File

@ -68,14 +68,15 @@ public class NetworkPlayer : NetworkBehaviour
float LH, LS, LV; float RH, RS, RV; float LH, LS, LV; float RH, RS, RV;
Color.RGBToHSV(LHandMat.color, out LH, out LS, out LV); Color.RGBToHSV(LHandMat.color, out LH, out LS, out LV);
Color.RGBToHSV(RHandMat.color, out RH, out RS, out RV); Color.RGBToHSV(RHandMat.color, out RH, out RS, out RV);
LH += HandHueShift; RH += HandHueShift; var LColor = Color.HSVToRGB(LH + HandHueShift, RS, RV);
LHandMat.color = Color.HSVToRGB(LH, RS, RV); var RColor = Color.HSVToRGB(RH + HandHueShift, RS, RV);
RHandMat.color = Color.HSVToRGB(RH, RS, RV); LColor.a = LHandMat.color.a; RColor.a = RHandMat.color.a;
LHandMat.color = LColor;
RHandMat.color = RColor;
} }
} }
private void Start() private void Start()
{ {
if (IsHost) if (IsHost)
{ {
transform.position = new Vector3(Player1Position.x, transform.position.y, transform.position.z + Player1Position.y); transform.position = new Vector3(Player1Position.x, transform.position.y, transform.position.z + Player1Position.y);

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: cbf498d537c04dd4e9f2720eed7a1319
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1 +0,0 @@
{"Keys":["com.unity.services.core.cloud-environment","com.unity.services.qos.version","com.unity.services.lobby.version","com.unity.services.core.version","com.unity.services.authentication.version","com.unity.services.relay.version"],"Values":[{"m_Value":"production","m_IsReadOnly":true},{"m_Value":"1.0.1","m_IsReadOnly":true},{"m_Value":"1.0.1","m_IsReadOnly":true},{"m_Value":"1.4.2","m_IsReadOnly":true},{"m_Value":"2.1.1","m_IsReadOnly":true},{"m_Value":"1.0.3","m_IsReadOnly":true}]}

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 5850fa29d5b8ecb4a90d8708db37eb9d
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: