docs.unity3d.com
    Show / Hide Table of Contents

    Surfgrad Scale Dependent From Deriv

    Takes a texture or screen space height derivative and returns a scale dependent Surface Gradient.

    Screenshot

    Ports

    Name Direction Type Binding Description
    Deriv Input Vector 2 None Texture or screen space height derivatives
    UV Input Vector 2 UV UV coordinates
    Texture Size Input Vector 2 None Source texture width and height
    Screen space Input Bool None Deriv is in screen space
    Base Normal Input Vector 3 None Base normal
    Base Position Input Vector 3 None Base position (predisplacement)
    Surfgrad Output Vector 3 None Output surface gradient

    Controls

    Name Type Options Description
    Space Dropdown World, Object Selects the coordinate space to use for scale dependent calculations
    Back to top
    Terms of use
    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