Beispiel #1
0
 public Model(String _name)
 {
     this._name = _name;
     this._meshes = new List<Mesh>();
     this._material = new Material("Materials/Phong.mat", "PHONG");
     this._material.specular = new double[] { 1.0, 1.0, 1.0, 1.0 };
     this._material.specularIntensity = 0.0;
 }
Beispiel #2
0
        public Mesh(String _name)
        {
            this._name = _name;
            _faces = new List<Face>();

            this._material = new Material("Materials/Phong.mat", "PHONG");
            this._material.specular = new double[] { 1.0, 1.0, 1.0, 1.0 };
            this._material.specularIntensity = 0.0;

            this._material.diffuse = new double[] { 1.0, 1.0, 1.0, 1.0 };
        }