mirror of
https://github.com/xiaopeng12138/MaiDXR.git
synced 2024-11-27 20:40:48 +01:00
fix hand transparency issue
This commit is contained in:
parent
9d02f0585e
commit
c7c8f404f2
@ -68,14 +68,15 @@ public class NetworkPlayer : NetworkBehaviour
|
||||
float LH, LS, LV; float RH, RS, RV;
|
||||
Color.RGBToHSV(LHandMat.color, out LH, out LS, out LV);
|
||||
Color.RGBToHSV(RHandMat.color, out RH, out RS, out RV);
|
||||
LH += HandHueShift; RH += HandHueShift;
|
||||
LHandMat.color = Color.HSVToRGB(LH, RS, RV);
|
||||
RHandMat.color = Color.HSVToRGB(RH, RS, RV);
|
||||
var LColor = Color.HSVToRGB(LH + HandHueShift, RS, RV);
|
||||
var RColor = Color.HSVToRGB(RH + HandHueShift, RS, RV);
|
||||
LColor.a = LHandMat.color.a; RColor.a = RHandMat.color.a;
|
||||
LHandMat.color = LColor;
|
||||
RHandMat.color = RColor;
|
||||
}
|
||||
}
|
||||
private void Start()
|
||||
{
|
||||
|
||||
if (IsHost)
|
||||
{
|
||||
transform.position = new Vector3(Player1Position.x, transform.position.y, transform.position.z + Player1Position.y);
|
||||
|
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cbf498d537c04dd4e9f2720eed7a1319
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -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}]}
|
@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5850fa29d5b8ecb4a90d8708db37eb9d
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user