Пример #1
0
 private void SetOutline(Material mat, bool bHide)
 {
     this.HideOutline = bHide;
     if (!GameLevelManager.IsLuminousOutlineOn())
     {
         return;
     }
     if (!bHide && !ShaderEffectUtils.OutlineIncludeNormal)
     {
         return;
     }
     if (mat != null && mat.HasProperty(ShaderPIDManager._OutlineColor))
     {
         this.outlineColor   = mat.GetColor(ShaderPIDManager._OutlineColor);
         this.outlineColor.a = (float)((!bHide) ? 1 : 0);
         mat.SetColor(ShaderPIDManager._OutlineColor, this.outlineColor);
     }
 }