Axiom.Demos.DeferredShadingSystem.MaterialGenerator.GetPixelShader C# (CSharp) Method

GetPixelShader() protected method

protected GetPixelShader ( UInt32 permutation ) : Axiom.Graphics.GpuProgram
permutation System.UInt32
return Axiom.Graphics.GpuProgram
        protected GpuProgram GetPixelShader( MaterialPermutation permutation )
        {
            GpuProgram program = null;

            if ( this._psCache.ContainsKey( permutation ) )
            {
                program = this._psCache[ permutation ];
            }
            else
            {
                // Create it
                program = this._generator.GeneratePixelShader( permutation );
                this._psCache.Add( permutation, program );
            }

            return program;
        }