internal void SetTint(Color effectiveTint) { float h, s, v; Color.RGBToHSV(effectiveTint, out h, out s, out v); avatarMaterialInstance.SetColor("_MainTint", effectiveTint); Color holoColor = ArtUtil.GetHologramColor(effectiveTint); foreach (MeshRenderer renderer in hologramEffects) { renderer.material.SetColor("_MainTint", holoColor); } avatarHoloMaterialInstance.SetColor("_MainTint", holoColor); avatarEyesHoloMaterialInstance.SetColor("_MainTint", holoColor); if (isHologram) { SetToHologramMaterial(); } else { SetToStandardMaterial(); } }
public void SetTint(Color tint) { Color color = ArtUtil.GetHologramColor(tint); foreach (Renderer renderer in renderers) { renderer.material.SetColor("_MainTint", color); } particleRenderer.material.SetColor("_Color", color); }
public void SetTint(Color color) { spawnMaterialInstance.SetColor("_Color0", ArtUtil.GetHologramColor(color)); }
public void SetTint(Color color) { hologramPyramid.SetTint(ArtUtil.GetHologramColor(color)); }
public void SetTint(Color color) { materialCopy.SetColor("_MainTint", ArtUtil.GetHologramColor(color)); }
public void SetTint(Color tint) { previewMaterialInstance.SetColor("_MainTint", ArtUtil.GetHologramColor(tint)); previewTint = tint; }