docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ColorGrading

    This class holds settings for the Color Grading effect.

    Inheritance
    object
    Object
    ScriptableObject
    PostProcessEffectSettings
    ColorGrading
    Inherited Members
    PostProcessEffectSettings.active
    PostProcessEffectSettings.enabled
    PostProcessEffectSettings.SetAllOverridesTo(bool, bool)
    PostProcessEffectSettings.GetHash()
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering.PostProcessing
    Assembly: Unity.Postprocessing.Runtime.dll
    Syntax
    [Serializable]
    public sealed class ColorGrading : PostProcessEffectSettings

    Fields

    blueCurve

    Remaps the blue channel.

    Declaration
    public SplineParameter blueCurve
    Field Value
    Type Description
    SplineParameter
    Remarks

    This is only used when working with LowDefinitionRange.

    brightness

    Makes the image brighter or darker.

    Declaration
    [DisplayName("Brightness")]
    [Range(-100, 100)]
    [Tooltip("Makes the image brighter or darker.")]
    public FloatParameter brightness
    Field Value
    Type Description
    FloatParameter
    Remarks

    This is only used when working with LowDefinitionRange.

    colorFilter

    Tints the render by multiplying a color.

    Declaration
    [DisplayName("Color Filter")]
    [ColorUsage(false, true)]
    [Tooltip("Tint the render by multiplying a color.")]
    public ColorParameter colorFilter
    Field Value
    Type Description
    ColorParameter

    contrast

    Expands or shrinks the overall range of tonal values.

    Declaration
    [DisplayName("Contrast")]
    [Range(-100, 100)]
    [Tooltip("Expands or shrinks the overall range of tonal values.")]
    public FloatParameter contrast
    Field Value
    Type Description
    FloatParameter

    externalLut

    A custom 3D log-encoded texture.

    Declaration
    [DisplayName("Lookup Texture")]
    [Tooltip("A custom 3D log-encoded texture.")]
    public TextureParameter externalLut
    Field Value
    Type Description
    TextureParameter
    Remarks

    This is only used when working with External.

    gain

    Controls the lightest portions of the render.

    Declaration
    [DisplayName("Gain")]
    [Tooltip("Controls the lightest portions of the render.")]
    [Trackball(TrackballAttribute.Mode.Gain)]
    public Vector4Parameter gain
    Field Value
    Type Description
    Vector4Parameter
    Remarks

    The neutral value is (1, 1, 1, 0).

    gamma

    A power function that controls mid-range tones.

    Declaration
    [DisplayName("Gamma")]
    [Tooltip("Power function that controls mid-range tones.")]
    [Trackball(TrackballAttribute.Mode.Gamma)]
    public Vector4Parameter gamma
    Field Value
    Type Description
    Vector4Parameter
    Remarks

    The neutral value is (1, 1, 1, 0).

    gradingMode

    The grading mode to use.

    Declaration
    [DisplayName("Mode")]
    [Tooltip("Select a color grading mode that fits your dynamic range and workflow. Use HDR if your camera is set to render in HDR and your target platform supports it. Use LDR for low-end mobiles or devices that don't support HDR. Use External if you prefer authoring a Log LUT in an external software.")]
    public GradingModeParameter gradingMode
    Field Value
    Type Description
    GradingModeParameter

    greenCurve

    Remaps the green channel/

    Declaration
    public SplineParameter greenCurve
    Field Value
    Type Description
    SplineParameter
    Remarks

    This is only used when working with LowDefinitionRange.

    hueShift

    Shifts the hue of all colors.

    Declaration
    [DisplayName("Hue Shift")]
    [Range(-180, 180)]
    [Tooltip("Shift the hue of all colors.")]
    public FloatParameter hueShift
    Field Value
    Type Description
    FloatParameter

    hueVsHueCurve

    Remaps the hue according to the current hue.

    Declaration
    public SplineParameter hueVsHueCurve
    Field Value
    Type Description
    SplineParameter

    hueVsSatCurve

    Remaps the saturation according to the current hue.

    Declaration
    public SplineParameter hueVsSatCurve
    Field Value
    Type Description
    SplineParameter

    ldrLut

    A custom lookup texture (strip format, e.g. 256x16) to apply before the rest of the color grading operators. If none is provided, a neutral one will be generated internally.

    Declaration
    [DisplayName("Lookup Texture")]
    [Tooltip("Custom lookup texture (strip format, for example 256x16) to apply before the rest of the color grading operators. If none is provided, a neutral one will be generated internally.")]
    public TextureParameter ldrLut
    Field Value
    Type Description
    TextureParameter
    Remarks

    This is only used when working with LowDefinitionRange.

    ldrLutContribution

    How much of the lookup texture will contribute to the color grading.

    Declaration
    [DisplayName("Contribution")]
    [Range(0, 1)]
    [Tooltip("How much of the lookup texture will contribute to the color grading effect.")]
    public FloatParameter ldrLutContribution
    Field Value
    Type Description
    FloatParameter
    Remarks

    This is only used when working with LowDefinitionRange.

    lift

    Controls the darkest portions of the render.

    Declaration
    [DisplayName("Lift")]
    [Tooltip("Controls the darkest portions of the render.")]
    [Trackball(TrackballAttribute.Mode.Lift)]
    public Vector4Parameter lift
    Field Value
    Type Description
    Vector4Parameter
    Remarks

    The neutral value is (1, 1, 1, 0).

    lumVsSatCurve

    Remaps the saturation according to the current luminance.

    Declaration
    public SplineParameter lumVsSatCurve
    Field Value
    Type Description
    SplineParameter

    masterCurve

    Remaps the luminosity values.

    Declaration
    public SplineParameter masterCurve
    Field Value
    Type Description
    SplineParameter
    Remarks

    This is only used when working with LowDefinitionRange.

    mixerBlueOutBlueIn

    Modifies the influence of the blue channel within the overall mix.

    Declaration
    [DisplayName("Blue")]
    [Range(-200, 200)]
    [Tooltip("Modify influence of the blue channel in the overall mix.")]
    public FloatParameter mixerBlueOutBlueIn
    Field Value
    Type Description
    FloatParameter

    mixerBlueOutGreenIn

    Modifies the influence of the green channel within the overall mix.

    Declaration
    [DisplayName("Green")]
    [Range(-200, 200)]
    [Tooltip("Modify influence of the green channel in the overall mix.")]
    public FloatParameter mixerBlueOutGreenIn
    Field Value
    Type Description
    FloatParameter

    mixerBlueOutRedIn

    Modifies the influence of the red channel within the overall mix.

    Declaration
    [DisplayName("Red")]
    [Range(-200, 200)]
    [Tooltip("Modify influence of the red channel in the overall mix.")]
    public FloatParameter mixerBlueOutRedIn
    Field Value
    Type Description
    FloatParameter

    mixerGreenOutBlueIn

    Modifies the influence of the blue channel within the overall mix.

    Declaration
    [DisplayName("Blue")]
    [Range(-200, 200)]
    [Tooltip("Modify influence of the blue channel in the overall mix.")]
    public FloatParameter mixerGreenOutBlueIn
    Field Value
    Type Description
    FloatParameter

    mixerGreenOutGreenIn

    Modifies the influence of the green channel within the overall mix.

    Declaration
    [DisplayName("Green")]
    [Range(-200, 200)]
    [Tooltip("Modify influence of the green channel in the overall mix.")]
    public FloatParameter mixerGreenOutGreenIn
    Field Value
    Type Description
    FloatParameter

    mixerGreenOutRedIn

    Modifies the influence of the red channel within the overall mix.

    Declaration
    [DisplayName("Red")]
    [Range(-200, 200)]
    [Tooltip("Modify influence of the red channel in the overall mix.")]
    public FloatParameter mixerGreenOutRedIn
    Field Value
    Type Description
    FloatParameter

    mixerRedOutBlueIn

    Modifies the influence of the blue channel within the overall mix.

    Declaration
    [DisplayName("Blue")]
    [Range(-200, 200)]
    [Tooltip("Modify influence of the blue channel in the overall mix.")]
    public FloatParameter mixerRedOutBlueIn
    Field Value
    Type Description
    FloatParameter

    mixerRedOutGreenIn

    Modifies the influence of the green channel within the overall mix.

    Declaration
    [DisplayName("Green")]
    [Range(-200, 200)]
    [Tooltip("Modify influence of the green channel in the overall mix.")]
    public FloatParameter mixerRedOutGreenIn
    Field Value
    Type Description
    FloatParameter

    mixerRedOutRedIn

    Modifies the influence of the red channel within the overall mix.

    Declaration
    [DisplayName("Red")]
    [Range(-200, 200)]
    [Tooltip("Modify influence of the red channel in the overall mix.")]
    public FloatParameter mixerRedOutRedIn
    Field Value
    Type Description
    FloatParameter

    postExposure

    Adjusts the overall exposure of the scene in EV units. This is applied after HDR effect and right before tonemapping so it won't affect previous effects in the chain.

    Declaration
    [DisplayName("Post-exposure (EV)")]
    [Tooltip("Adjusts the overall exposure of the scene in EV units. This is applied after the HDR effect and right before tonemapping so it won't affect previous effects in the chain.")]
    public FloatParameter postExposure
    Field Value
    Type Description
    FloatParameter
    Remarks

    This is only used when working with HighDefinitionRange.

    redCurve

    Remaps the red channel.

    Declaration
    public SplineParameter redCurve
    Field Value
    Type Description
    SplineParameter
    Remarks

    This is only used when working with LowDefinitionRange.

    satVsSatCurve

    Remaps the saturation according to the current saturation.

    Declaration
    public SplineParameter satVsSatCurve
    Field Value
    Type Description
    SplineParameter

    saturation

    Pushes the intensity of all colors.

    Declaration
    [DisplayName("Saturation")]
    [Range(-100, 100)]
    [Tooltip("Pushes the intensity of all colors.")]
    public FloatParameter saturation
    Field Value
    Type Description
    FloatParameter

    temperature

    Sets the white balance to a custom color temperature.

    Declaration
    [DisplayName("Temperature")]
    [Range(-100, 100)]
    [Tooltip("Sets the white balance to a custom color temperature.")]
    public FloatParameter temperature
    Field Value
    Type Description
    FloatParameter

    tint

    Sets the white balance to compensate for a green or magenta tint.

    Declaration
    [DisplayName("Tint")]
    [Range(-100, 100)]
    [Tooltip("Sets the white balance to compensate for a green or magenta tint.")]
    public FloatParameter tint
    Field Value
    Type Description
    FloatParameter

    toneCurveGamma

    Applies a gamma function to the curve.

    Declaration
    [DisplayName("Gamma")]
    [Min(0.001)]
    [Tooltip("Applies a gamma function to the curve.")]
    public FloatParameter toneCurveGamma
    Field Value
    Type Description
    FloatParameter
    Remarks

    This is only used when Custom is active.

    toneCurveShoulderAngle

    Affects how much overshot to add to the shoulder.

    Declaration
    [DisplayName("Shoulder Angle")]
    [Range(0, 1)]
    [Tooltip("Affects how much overshoot to add to the shoulder.")]
    public FloatParameter toneCurveShoulderAngle
    Field Value
    Type Description
    FloatParameter
    Remarks

    This is only used when Custom is active.

    toneCurveShoulderLength

    Affects how many F-stops (EV) to add to the dynamic range of the curve.

    Declaration
    [DisplayName("Shoulder Length")]
    [Min(0)]
    [Tooltip("Affects how many F-stops (EV) to add to the dynamic range of the curve.")]
    public FloatParameter toneCurveShoulderLength
    Field Value
    Type Description
    FloatParameter
    Remarks

    This is only used when Custom is active.

    toneCurveShoulderStrength

    Affects the transition between the mid section and the shoulder of the curve. A value of 0 means no shoulder, value of 1 means a very hard transition.

    Declaration
    [DisplayName("Shoulder Strength")]
    [Range(0, 1)]
    [Tooltip("Affects the transition between the mid section and the shoulder of the curve. A value of 0 means no shoulder, a value of 1 means a very hard transition.")]
    public FloatParameter toneCurveShoulderStrength
    Field Value
    Type Description
    FloatParameter
    Remarks

    This is only used when Custom is active.

    toneCurveToeLength

    Affects how much of the dynamic range is in the toe. With a small value, the toe will be very short and quickly transition into the linear section, and with a longer value having a longer toe.

    Declaration
    [DisplayName("Toe Length")]
    [Range(0, 1)]
    [Tooltip("Affects how much of the dynamic range is in the toe. With a small value, the toe will be very short and quickly transition into the linear section, with a larger value, the toe will be longer.")]
    public FloatParameter toneCurveToeLength
    Field Value
    Type Description
    FloatParameter
    Remarks

    This is only used when Custom is active.

    toneCurveToeStrength

    Affects the transition between the toe and the mid section of the curve. A value of 0 means no toe, a value of 1 means a very hard transition.

    Declaration
    [DisplayName("Toe Strength")]
    [Range(0, 1)]
    [Tooltip("Affects the transition between the toe and the mid section of the curve. A value of 0 means no toe, a value of 1 means a very hard transition.")]
    public FloatParameter toneCurveToeStrength
    Field Value
    Type Description
    FloatParameter
    Remarks

    This is only used when Custom is active.

    tonemapper

    The tonemapping algorithm to use at the end of the color grading process.

    Declaration
    [DisplayName("Mode")]
    [Tooltip("Select a tonemapping algorithm to use at the end of the color grading process.")]
    public TonemapperParameter tonemapper
    Field Value
    Type Description
    TonemapperParameter
    Remarks

    This is only used when working with HighDefinitionRange.

    Methods

    IsEnabledAndSupported(PostProcessRenderContext)

    Returns true if the effect is currently enabled and supported.

    Declaration
    public override bool IsEnabledAndSupported(PostProcessRenderContext context)
    Parameters
    Type Name Description
    PostProcessRenderContext context

    The current post-processing render context

    Returns
    Type Description
    bool

    true if the effect is currently enabled and supported

    Overrides
    PostProcessEffectSettings.IsEnabledAndSupported(PostProcessRenderContext)
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)