Class TextureParameter | Post Processing | 2.3.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class TextureParameter

    A ParameterOverride<T> that holds a value.

    Inheritance
    Object
    ParameterOverride
    ParameterOverride<Texture>
    TextureParameter
    Inherited Members
    ParameterOverride<Texture>.value
    ParameterOverride<Texture>.Override(Texture)
    ParameterOverride<Texture>.GetHash()
    ParameterOverride.overrideState
    ParameterOverride.GetValue<T>()
    ParameterOverride.OnEnable()
    ParameterOverride.OnDisable()
    Namespace: UnityEngine.Rendering.PostProcessing
    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, Single)

    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

    Single t

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

    Overrides
    UnityEngine.Rendering.PostProcessing.ParameterOverride<Texture>.Interp(Texture, Texture, System.Single)
    Remarks

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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023