public static Material CreateMaterial(String key, MaterialCreator creator) { Material material = creator.Create(); SetMaterial(key, material); return(material); }
public static MaterialCreator CreateMaterial(Color ambient, Color diffuse, Color emissive, Color specular, float power) { MaterialCreator creator = new MaterialCreator(); creator.Ambient = ambient; creator.Diffuse = diffuse; creator.Emissive = emissive; creator.Specular = specular; creator.Power = power; return(creator); }
internal void Initialize(Graphics3DConfiguration config) { OnInitialization(config); Graphics3DSystem.Implementors.MaterialImplementor.SetMaterial( MaterialCreator.CreateDefaultMaterial().Create()); }