docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TextureParameter

    A ParameterOverride<T> that holds a Texture value.

    Inheritance
    object
    ParameterOverride
    ParameterOverride<Texture>
    TextureParameter
    Inherited Members
    ParameterOverride<Texture>.value
    ParameterOverride<Texture>.Override(Texture)
    ParameterOverride<Texture>.GetHash()
    ParameterOverride.overrideState
    ParameterOverride.GetValue<T>()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering.PostProcessing
    Assembly: Unity.Postprocessing.Runtime.dll
    Syntax
    [Serializable]
    public sealed class TextureParameter : ParameterOverride<Texture>
    Remarks

    Texture interpolation is done using a classic linear interpolation method.

    Fields

    defaultState

    The default state & type for the texture.

    Declaration
    public TextureParameterDefault defaultState
    Field Value
    Type Description
    TextureParameterDefault

    Methods

    Interp(Texture, Texture, float)

    Interpolates between two values given an interpolation factor t.

    Declaration
    public override void Interp(Texture from, Texture to, float t)
    Parameters
    Type Name Description
    Texture from

    The value to interpolate from

    Texture to

    The value to interpolate to

    float t

    An interpolation factor (generally in range [0,1])

    Overrides
    ParameterOverride<Texture>.Interp(Texture, Texture, float)
    Remarks

    By default this method does a "snap" interpolation, meaning it will return the value to if t is higher than 0, from otherwise.

    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)