docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Math Nodes

    Advanced

    Absolute Exponential
    Image Image
    Returns the absolute value of input In. Returns the exponential value of input In.
    Length Log
    Image Image
    Returns the length of input In. Returns the logarithm of input In.
    Modulo Negate
    Image Image
    Returns the remainder of input A divided by input B. Returns the inverse value of input In.
    Normalize Posterize
    Image Image
    Returns the normalized vector of input In. Returns the input In converted into a number of values defined by input Steps.
    Reciprocal Reciprocal Square Root
    Image Image
    Returns the result of 1 divided by input In. Returns the result of 1 divided by the square root of input In.

    Basic

    Add Divide
    Image Image
    Returns the sum of the two input values. Returns the result of input A divided by input B.
    Multiply Power
    Image Image
    Returns the result of input A multiplied by input B. Returns the result of input A to the power of input B.
    Square Root Subtract
    Image Image
    Returns the square root of input In. Returns the result of input A minus input B.

    Derivative

    DDX DDXY
    Image Image
    Returns the partial derivative with respect to the screen-space x-coordinate. Returns the sum of both partial derivatives.
    DDY
    Image
    Returns the partial derivative with respect to the screen-space y-coordinate.

    Interpolation

    Inverse Lerp Lerp
    Image Image
    Returns the parameter that produces the interpolant specified by input T within the range of input A to input B. Returns the result of linearly interpolating between input A and input B by input T.
    Smoothstep
    Image
    Returns the result of a smooth Hermite interpolation between 0 and 1, if input In is between inputs Edge1 and Edge2.

    Matrix

    Matrix Construction Matrix Determinant
    Image Image
    Constructs square matrices from the four input vectors M0, M1, M2 and M3. Returns the determinant of the matrix defined by input In.
    Matrix Split Matrix Transpose
    Image Image
    Splits a square matrix defined by input In into vectors. Returns the transposed value of the matrix defined by input In.

    Range

    Clamp Fraction
    Image Image
    Returns the input In clamped between the minimum and maximum values defined by inputs Min and Max respectively. Returns the fractional (or decimal) part of input In; which is greater than or equal to 0 and less than 1.
    Maximum Minimum
    Image Image
    Returns the largest of the two inputs values A and B. Returns the smallest of the two inputs values A and B.
    One Minus Random Range
    Image Image
    Returns the result of input In subtracted from 1. Returns a pseudo-random number that is between the minimum and maximum values defined by inputs Min and Max.
    Remap Saturate
    Image Image
    Remaps the value of input In from between the values of input Out Min Max to between the values of input In Min Max. Returns the value of input In clamped between 0 and 1.

    Round

    Ceiling Floor
    Image Image
    Returns the smallest integer value, or whole number, that is greater than or equal to the value of input In. Returns the largest integer value, or whole number, that is less than or equal to the value of input In.
    Round Sign
    Image Image
    Returns the value of input In rounded to the nearest integer, or whole number. Returns -1 if the value of input In is less than zero, 0 if equal to zero and 1 if greater than zero.
    Step Truncate
    Image Image
    Returns 1 if the value of input In is greater than or equal to the value of input Edge, otherwise returns 0. Returns the integer, or whole number, component of the value of input In.

    Trigonometry

    Arccosine Arcsine
    Image Image
    Returns the arccosine of each component the input In as a vector of equal length. Returns the arcsine of each component the input In as a vector of equal length.
    Arctangent Arctangent2
    Image Image
    Returns the arctangent of the value of input In. Each component should be within the range of -Pi/2 to Pi/2. Returns the arctangent of the values of both input A and input B.
    Cosine Degrees to Radians
    Image Image
    Returns the cosine of the value of input In. Returns the value of input In converted from degrees to radians.
    Hyperbolic Cosine Hyperbolic Sine
    Image Image
    Returns the hyperbolic cosine of input In. Returns the hyperbolic sine of input In.
    Hyperbolic Tangent Radians to Degrees
    Image Image
    Returns the hyperbolic tangent of input In. Returns the value of input In converted from radians to degrees.
    Sine Tangent
    Image Image
    Returns the sine of the value of input In. Returns the tangent of the value of input In.

    Vector

    Cross Product Distance
    Image Image
    Returns the cross product of the values of the inputs A and B. Returns the Euclidean distance between the values of the inputs A and B.
    Dot Product Fresnel Effect
    Image Image
    Returns the dot product, or scalar product, of the values of the inputs A and B. Fresnel Effect is the effect of differing reflectance on a surface depending on viewing angle, where as you approach the grazing angle more light is reflected.
    Projection Reflection
    Image Image
    Returns the result of projecting the value of input A onto a straight line parallel to the value of input B. Returns a reflection vector using input In and a surface normal Normal.
    Rejection Rotate About Axis
    Image Image
    Returns the result of the projection of the value of input A onto the plane orthogonal, or perpendicular, to the value of input B. Rotates the input vector In around the axis Axis by the value of Rotation.
    Projection Rejection
    Image Image
    Returns the result of projecting the value of input A onto a straight line parallel to the value of input B. Returns the result of the projection of the value of input A onto the plane orthogonal, or perpendicular, to the value of input B.
    Sphere Mask Transform
    Image Image
    Creates a sphere mask originating from input Center. Returns the result of transforming the value of input In from one coordinate space to another.

    Wave

    Noise Sine Wave Sawtooth Wave
    Image Image
    Returns the sine of the value of input In. For variance, random noise is added to the amplitude of the sine wave. Returns a sawtooth wave from the value of input In.
    Matrix Split Matrix Transpose
    Image Image
    Splits a square matrix defined by input In into vectors. Returns the transposed value of the matrix defined by input In.

    Noise Sine Wave Sawtooth Wave Square Wavve Triangle Wave


    Did you find this page useful? Please give it a rating:

    Thanks for rating this page!

    Report a problem on this page

    What kind of problem would you like to report?

    • This page needs code samples
    • Code samples do not work
    • Information is missing
    • Information is incorrect
    • Information is unclear or confusing
    • There is a spelling/grammar error on this page
    • Something else

    Thanks for letting us know! This page has been marked for review based on your feedback.

    If you have time, you can provide more information to help us fix the problem faster.

    Provide more information

    You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:

    You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:

    You've told us there is information missing from this page. Please tell us more about what's missing:

    You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:

    You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:

    You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:

    You've told us this page has a problem. Please tell us more about what's wrong:

    Thank you for helping to make the Unity documentation better!

    Your feedback has been submitted as a ticket for our documentation team to review.

    We are not able to reply to every ticket submitted.

    In This Article
    • Advanced
    • Basic
    • Derivative
    • Interpolation
    • Matrix
    • Range
    • Round
    • Trigonometry
    • Vector
    • Wave
    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)