Ejemplo n.º 1
0
        public void UseGouraudShading()
        {
            GouraudSchadingMachine machine = new GouraudSchadingMachine();

            machine.fogMachine = this.shadingMachine.fogMachine;
            shadingMachine     = machine;
        }
Ejemplo n.º 2
0
        public void UsePhongShading()
        {
            PhongShadinMachine machine = new PhongShadinMachine();

            machine.fogMachine = this.shadingMachine.fogMachine;
            shadingMachine     = machine;
        }
Ejemplo n.º 3
0
        public void UseFlatShading()
        {
            FlatShadingMachine machine = new FlatShadingMachine();

            machine.fogMachine = this.shadingMachine.fogMachine;
            shadingMachine     = machine;
        }