예제 #1
0
파일: Viewer.cs 프로젝트: elix22/Effekseer
        void PostEffectChanged()
        {
            var postEffectParam = new swig.PostEffectParameter();

            postEffectParam.BloomEnabled   = Core.Environment.PostEffect.BloomSwitch.Value == Data.EnvironmentPostEffectValues.EffectSwitch.On;
            postEffectParam.BoomIntensity  = Core.Environment.PostEffect.Bloom.Intensity.Value;
            postEffectParam.BloomThreshold = Core.Environment.PostEffect.Bloom.Threshold.Value;
            postEffectParam.BloomSoftKnee  = Core.Environment.PostEffect.Bloom.SoftKnee.Value;

            postEffectParam.ToneMapAlgorithm = (int)Core.Environment.PostEffect.TonemapSelector.Value;
            postEffectParam.ToneMapExposure  = Core.Environment.PostEffect.TonemapReinhard.Exposure.Value;

            EffectRenderer.SetPostEffectParameter(postEffectParam);
        }