Bloom and color grading help make game visuals look more vibrant and realistic by adding glow and adjusting colors.
Bloom and color grading in Unity
using UnityEngine; using UnityEngine.Rendering; using UnityEngine.Rendering.Universal; public class BloomAndColorGradingSetup : MonoBehaviour { public Volume volume; private Bloom bloom; private ColorAdjustments colorAdjustments; void Start() { if (volume.profile.TryGet<Bloom>(out bloom)) { bloom.intensity.value = 1.5f; // Set bloom glow strength } if (volume.profile.TryGet<ColorAdjustments>(out colorAdjustments)) { colorAdjustments.saturation.value = 20f; // Increase color saturation colorAdjustments.contrast.value = 10f; // Increase contrast } } }
You need to have a Volume component with a profile that includes Bloom and ColorAdjustments effects.
Adjust values like intensity, saturation, and contrast to get the look you want.
bloom.intensity.value = 2.0f; // Stronger bloom glowcolorAdjustments.saturation.value = -30f; // Desaturate colors for a dull look
colorAdjustments.temperature.value = 10f; // Warmer color toneThis script sets up bloom and color grading on a volume to add a soft glow and slightly boost colors when the game starts.
using UnityEngine; using UnityEngine.Rendering; using UnityEngine.Rendering.Universal; public class SimpleBloomColorGrading : MonoBehaviour { public Volume volume; private Bloom bloom; private ColorAdjustments colorAdjustments; void Start() { if (volume.profile.TryGet<Bloom>(out bloom)) { bloom.intensity.value = 1.2f; bloom.threshold.value = 1.0f; } if (volume.profile.TryGet<ColorAdjustments>(out colorAdjustments)) { colorAdjustments.saturation.value = 15f; colorAdjustments.contrast.value = 5f; } } }
Make sure your camera uses a Universal Render Pipeline (URP) asset for these effects to work.
You can tweak bloom and color grading settings in the Volume profile in the Unity Editor for quick previews.
Too much bloom or saturation can make the scene look unnatural, so adjust carefully.
Bloom adds a glowing effect to bright parts of the scene.
Color grading changes the overall colors to set mood or style.
Use Unity's Volume system to control these effects easily.