Beispiel #1
0
 public override Layer GetMainLayer()
 {
     return(new Layer
     {
         image = MaterialUtils.GetMagickImage(material.mainTexture),
         color = material.HasProperty("_Color") ? material.color : Color.white
     });
 }
 public override Layer GetEmissionLayer()
 {
     return(new Layer
     {
         image = MaterialUtils.GetMagickImage(material, "_Emissive_Tex"),
         color = material.GetColor("_Emissive_Color")
     });
 }
Beispiel #3
0
        private Layer GetEmissiveFreakLayer(int index)
        {
            var num = index + 1;

            return(new Layer
            {
                image = MaterialUtils.GetMagickImage(material, $"_EmissiveFreak{num}Tex"),
                color = material.GetColor($"_EmissiveFreak{num}Color")
            });
        }
Beispiel #4
0
 public override Layer GetEmissionLayer()
 {
     if (!HasEmission())
     {
         return(null);
     }
     return(new Layer
     {
         image = MaterialUtils.GetMagickImage(material, "_EmissionMap"),
         color = material.GetColor("_EmissionColor")
     });
 }