示例#1
0
 protected override void OnRelease()
 {
     ProcessedTexture = null;
     Objects.Clear();
     PostProcessingActions = null;
     Material                = null;
     SourceTextureBuffer     = null;
     FirstTemporaryBuffer    = null;
     SecondTemporaryBuffer   = null;
     ColorCorrectionBuffer   = null;
     ColorCorrectionMaterial = null;
     BlurBuffer              = null;
     BlurMaterial            = null;
     BloomBuffer             = null;
     BloomMaterial           = null;
     DistortionBuffer        = null;
     DistortionMaterial      = null;
     SharpenBuffer           = null;
     SharpenMaterial         = null;
     NoiseBuffer             = null;
     NoiseTexture            = null;
     NoiseMaterial           = null;
     FXAABuffer              = null;
     FXAAMaterial            = null;
     VignetteMaterial        = null;
     TransparentTexture      = null;
     AlphaDiffuseMaterial    = null;
     AddDiffuseMaterial      = null;
     OpaqueDiffuseMaterial   = null;
 }
示例#2
0
        private void FixedUpdate()
        {
            if (this.armorMat == null || this.armorMat.material != this.skinController.activeArmorMaterial)
            {
                this.armorMat     = new StandardMaterial(this.skinController.activeArmorMaterial);
                this.armorMatMenu = new Menu <StandardMaterial>(this.armorMat);
            }

            if (this.flameMat == null || this.flameMat.material != this.skinController.activeFlameMaterial)
            {
                this.flameMat     = new CloudMaterial(this.skinController.activeFlameMaterial);
                this.flameMatMenu = new Menu <CloudMaterial>(this.flameMat);

                //this.flameMat = new OpaqueCloudMaterial( this.skinController.activeFlameMaterial );
                //this.flameMatMenu = new Menu<OpaqueCloudMaterial>( this.flameMat );
            }

            if (this.tracerMat == null || this.tracerMat.material != this.skinController.activeTracerMaterial)
            {
                this.tracerMat     = new CloudMaterial(this.skinController.activeTracerMaterial);
                this.tracerMatMenu = new Menu <CloudMaterial>(this.tracerMat);
            }

            if (this.pillarMat == null || this.pillarMat.material != this.skinController.activeFlamePillarMaterial)
            {
                this.pillarMat     = new CloudMaterial(this.skinController.activeFlamePillarMaterial);
                this.pillarMatMenu = new Menu <CloudMaterial>(this.pillarMat);
            }

            if (this.indicatorMat == null || this.indicatorMat.material != this.skinController.activeAreaIndicatorMaterial)
            {
                this.indicatorMat     = new IntersectionCloudMaterial(this.skinController.activeAreaIndicatorMaterial);
                this.indicatorMatMenu = new Menu <IntersectionCloudMaterial>(this.indicatorMat);
            }

            if (this.indicatorMat2 == null || this.indicatorMat2.material != this.skinController.activeAreaIndicatorMaterial2)
            {
                this.indicatorMat2     = new IntersectionCloudMaterial(this.skinController.activeAreaIndicatorMaterial2);
                this.indicatorMatMenu2 = new Menu <IntersectionCloudMaterial>(this.indicatorMat2);
            }

            if (this.explosionMat == null || this.explosionMat.material != this.skinController.activeExplosionMaterial)
            {
                this.explosionMat     = new CloudMaterial(this.skinController.activeExplosionMaterial);
                this.explosionMatMenu = new Menu <CloudMaterial>(this.explosionMat);
            }

            if (this.beamMat == null || this.beamMat.material != this.skinController.activeBeamMaterial)
            {
                this.beamMat     = new CloudMaterial(this.skinController.activeBeamMaterial);
                this.beamMatMenu = new Menu <CloudMaterial>(this.beamMat);
            }

            if (this.distortionLMat == null || this.distortionLMat.material != this.skinController.activeDistortionLightMaterial)
            {
                this.distortionLMat     = new DistortionMaterial(this.skinController.activeDistortionLightMaterial);
                this.distortionLMatMenu = new Menu <DistortionMaterial>(this.distortionLMat);
            }

            if (this.distortionMat == null || this.distortionMat.material != this.skinController.activeDistortionMaterial)
            {
                this.distortionMat     = new DistortionMaterial(this.skinController.activeDistortionMaterial);
                this.distortionMatMenu = new Menu <DistortionMaterial>(this.distortionMat);
            }

            if (this.distortionHMat == null || this.distortionHMat.material != this.skinController.activeDistortionHeavyMaterial)
            {
                this.distortionHMat     = new DistortionMaterial(this.skinController.activeDistortionHeavyMaterial);
                this.distortionHMatMenu = new Menu <DistortionMaterial>(this.distortionHMat);
            }

            if (this.arcaneCircleMat == null || this.arcaneCircleMat.material != this.skinController.activeArcaneCircleMaterial)
            {
                this.arcaneCircleMat     = new CloudMaterial(this.skinController.activeArcaneCircleMaterial);
                this.arcaneCircleMatMenu = new Menu <CloudMaterial>(this.arcaneCircleMat);
            }

            if (this.flameTornadoMat == null || this.flameTornadoMat.material != this.skinController.activeFlameTornadoMaterial)
            {
                this.flameTornadoMat     = new CloudMaterial(this.skinController.activeFlameTornadoMaterial);
                this.flameTornadoMatMenu = new Menu <CloudMaterial>(this.flameTornadoMat);
            }

            if (this.bossIndicatorMat == null || this.bossIndicatorMat.material != this.skinController.activeBossAreaIndicatorMaterial)
            {
                this.bossIndicatorMat     = new IntersectionCloudMaterial(this.skinController.activeBossAreaIndicatorMaterial);
                this.bossIndicatorMatMenu = new Menu <IntersectionCloudMaterial>(this.bossIndicatorMat);
            }

            if (this.bossExplosionIndMat == null || this.bossExplosionIndMat.material != this.skinController.activeBossAreaExplosionMaterial)
            {
                this.bossExplosionIndMat     = new CloudMaterial(this.skinController.activeBossAreaExplosionMaterial);
                this.bossExplosionIndMatMenu = new Menu <CloudMaterial>(this.bossExplosionIndMat);
            }

            if (this.burnMat == null || this.burnMat.material != this.skinController.activeBurnMaterial)
            {
                this.burnMat     = new CloudMaterial(this.skinController.activeBurnMaterial);
                this.burnMatMenu = new Menu <CloudMaterial>(this.burnMat);
            }
        }