示例#1
0
    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);
    }
示例#3
0
 public void SetTint(Color color)
 {
     spawnMaterialInstance.SetColor("_Color0", ArtUtil.GetHologramColor(color));
 }
示例#4
0
 public void SetTint(Color color)
 {
     hologramPyramid.SetTint(ArtUtil.GetHologramColor(color));
 }
示例#5
0
 public void SetTint(Color color)
 {
     materialCopy.SetColor("_MainTint", ArtUtil.GetHologramColor(color));
 }
 public void SetTint(Color tint)
 {
     previewMaterialInstance.SetColor("_MainTint", ArtUtil.GetHologramColor(tint));
     previewTint = tint;
 }