Beispiel #1
0
        protected override void OnEnable()
        {
            ClientComponentLightingRenderer.AdditionalAmbientLight += AdditionalAmbientLight;
            ClientComponentLightingRenderer.AdditionalAmbightLightAdditiveFraction +=
                AdditionalAmbientLightAdditiveFraction;

            this.postEffectNightVision       = ClientPostEffectsManager.Add <NightVisionPostEffect>();
            this.postEffectNightVision.Order = PostEffectsOrder.Devices;

            this.postEffectBloom = ClientPostEffectsManager.Add <BloomPostEffect>();
            this.postEffectBloom.Setup(BloomSettings);
            this.postEffectBloom.Order = this.postEffectNightVision.Order - 1;
        }
        protected override void OnEnable()
        {
            this.postEffectNightVision                = ClientPostEffectsManager.Add <NightVisionPostEffect>();
            this.postEffectNightVision.Order          = PostEffectsOrder.Devices;
            this.postEffectNightVision.EffectResource = this.EffectResource;

            this.postEffectBloom = ClientPostEffectsManager.Add <BloomPostEffect>();
            this.postEffectBloom.Setup(BloomSettings);
            this.postEffectBloom.Order = this.postEffectNightVision.Order - 1;

            this.postEffectNightVision.IsSuppressed = true;
            this.postEffectBloom.IsSuppressed       = true;
        }