Esempio n. 1
0
        public Effect getShaderByType(ShaderType shaderType)
        {
            switch (shaderType)
            {
            case ShaderType.None:
                return(null);

            case ShaderType.ColorChange:
                return(EffectManager.ColorChange());

            case ShaderType.WeakBleach:
                return(EffectManager.WeakBleach());

            case ShaderType.Bleach:
                return(EffectManager.Bleach());

            case ShaderType.StrongBleach:
                return(EffectManager.StrongBleach());

            case ShaderType.WeakBlur:
                return(EffectManager.WeakBlurrer());

            case ShaderType.Blur:
                return(EffectManager.Blurrer());

            case ShaderType.StrongBlur:
                return(EffectManager.StrongBlurrer());

            case ShaderType.BleachBlur:
                return(EffectManager.BleachBlur());

            default:
                return(null);
            }
        }