Ejemplo n.º 1
0
        private void BuildSkullGeometryBuffers()
        {
            _skullModel = BasicModel.LoadFromTxtFile(Device, "Models/skull.txt");
            _skullModel.Materials[0] = new Material {
                Ambient  = new Color4(0.2f, 0.2f, 0.2f),
                Diffuse  = new Color4(0.2f, 0.2f, 0.2f),
                Specular = new Color4(16.0f, 0.8f, 0.8f, 0.8f),
                Reflect  = new Color4(0.5f, 0.5f, 0.5f)
            };


            _skull = new BasicModelInstance(_skullModel)
            {
                World = Matrix.Scaling(0.5f, 0.5f, 0.5f) * Matrix.Translation(0, 1.0f, 0)
            };
        }