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

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

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

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