Example #1
0
 protected override void SetupMaterials(GameObject modelPrefab)
 {
     modelPrefab.GetComponentInChildren <SkinnedMeshRenderer>().material = Assets.CreateMaterial("matAncientScepter", 1, Color.white, 1);
 }
Example #2
0
 public static Material CreateMaterial(string materialName, float emission)
 {
     return(Assets.CreateMaterial(materialName, emission, Color.black));
 }
Example #3
0
 public static Material CreateMaterial(string materialName, float emission, Color emissionColor)
 {
     return(Assets.CreateMaterial(materialName, emission, emissionColor, 0f));
 }
Example #4
0
 public static Material CreateMaterial(string materialName)
 {
     return(Assets.CreateMaterial(materialName, 0f));
 }