示例#1
0
        public void UseGouraudShading()
        {
            GouraudSchadingMachine machine = new GouraudSchadingMachine();

            machine.fogMachine = this.shadingMachine.fogMachine;
            shadingMachine     = machine;
        }
示例#2
0
        public void UsePhongShading()
        {
            PhongShadinMachine machine = new PhongShadinMachine();

            machine.fogMachine = this.shadingMachine.fogMachine;
            shadingMachine     = machine;
        }
示例#3
0
        public void UseFlatShading()
        {
            FlatShadingMachine machine = new FlatShadingMachine();

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