예제 #1
0
        public static Material CreateMaterial(String key, MaterialCreator creator)
        {
            Material material = creator.Create();

            SetMaterial(key, material);

            return(material);
        }
예제 #2
0
        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);
        }
예제 #3
0
 internal void Initialize(Graphics3DConfiguration config)
 {
     OnInitialization(config);
     Graphics3DSystem.Implementors.MaterialImplementor.SetMaterial(
         MaterialCreator.CreateDefaultMaterial().Create());
 }