You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
671 B

using UnityEngine;
namespace ET.Util
{
public class MaterialHelper : SingletonBase<MaterialHelper>
{
public Material EdgeHighlightMat { get; }
public Material HighlightMat { get; }
public MaterialHelper()
{
this.EdgeHighlightMat = new Material(Shader.Find("PeachValley/GameObject"));
this.EdgeHighlightMat.EnableKeyword("_EFFECT_EDGE_ON");
this.EdgeHighlightMat.EnableKeyword("_EFFECT_HIGHLIGHT_ON");
this.HighlightMat = new Material(Shader.Find("PeachValley/GameObject"));
this.HighlightMat.EnableKeyword("_EFFECT_HIGHLIGHT_ON");
}
}
}