docs.unity3d.com
Search Results for

    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
    In This Article
    Back to top
    Copyright © 2023 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)