private void SetBloomPreset(BloomPresets preset) { switch (preset) { case BloomPresets.Wide: { _bloomStrength1 = 0.5f; _bloomStrength2 = 1; _bloomStrength3 = 2; _bloomStrength4 = 1; _bloomStrength5 = 2; _bloomRadius5 = 4.0f; _bloomRadius4 = 4.0f; _bloomRadius3 = 2.0f; _bloomRadius2 = 2.0f; _bloomRadius1 = 1.0f; BloomStreakLength = 1; BloomDownsamplePasses = 5; break; } case BloomPresets.SuperWide: { _bloomStrength1 = 0.9f; _bloomStrength2 = 1; _bloomStrength3 = 1; _bloomStrength4 = 2; _bloomStrength5 = 6; _bloomRadius5 = 4.0f; _bloomRadius4 = 2.0f; _bloomRadius3 = 2.0f; _bloomRadius2 = 2.0f; _bloomRadius1 = 2.0f; BloomStreakLength = 1; BloomDownsamplePasses = 5; break; } case BloomPresets.Focussed: { _bloomStrength1 = 0.8f; _bloomStrength2 = 1; _bloomStrength3 = 1; _bloomStrength4 = 1; _bloomStrength5 = 2; _bloomRadius5 = 4.0f; _bloomRadius4 = 2.0f; _bloomRadius3 = 2.0f; _bloomRadius2 = 2.0f; _bloomRadius1 = 2.0f; BloomStreakLength = 1; BloomDownsamplePasses = 5; break; } case BloomPresets.Small: { _bloomStrength1 = 0.8f; _bloomStrength2 = 1; _bloomStrength3 = 1; _bloomStrength4 = 1; _bloomStrength5 = 1; _bloomRadius5 = 1; _bloomRadius4 = 1; _bloomRadius3 = 1; _bloomRadius2 = 1; _bloomRadius1 = 1; BloomStreakLength = 1; BloomDownsamplePasses = 5; break; } case BloomPresets.Cheap: { _bloomStrength1 = 0.8f; _bloomStrength2 = 2; _bloomRadius2 = 2; _bloomRadius1 = 2; BloomStreakLength = 1; BloomDownsamplePasses = 2; break; } case BloomPresets.One: { _bloomStrength1 = 4f; _bloomStrength2 = 1; _bloomStrength3 = 1; _bloomStrength4 = 1; _bloomStrength5 = 2; _bloomRadius5 = 1.0f; _bloomRadius4 = 1.0f; _bloomRadius3 = 1.0f; _bloomRadius2 = 1.0f; _bloomRadius1 = 1.0f; BloomStreakLength = 1; BloomDownsamplePasses = 5; break; } } }
public QualityBloomPostProcessor SetPreset(BloomPresets val) { SetBloomPreset(val); return(this); }