Precision Types | Shader Graph | 7.1.8
docs.unity3d.com
    Show / Hide Table of Contents

    Precision Types

    Description

    There are currently two Precision Types in Shader Graph. Use the options listed in Precision Modes to define a Precision Type for each node.

    Precision Types

    Name Description
    Half Medium precision floating point value; generally 16 bits (range of –60000 to +60000, with about 3 decimal digits of precision).
    Half precision is useful for short vectors, directions, object space positions, and high dynamic range colors.
    Float Highest precision floating point value; generally 32 bits (identical to float in regular programming languages).
    Full float precision is useful for world space positions, texture coordinates, and scalar computations that involve complex functions such as trigonometry, power, and exponentiation.
    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