docs.unity3d.com
    Show / Hide Table of Contents

    Deriv From Height Texture Grad

    Samples a Texture 2D height map using a gradient and returns the texture space height Derivatives.

    Screenshot

    Ports

    Name Direction Type Binding Description
    Texture Input Texture 2D None Texture 2D height map to sample
    Sampler Input Sampler State Default sampler state Sampler for the texture
    UV Input Vector 2 UV UV coordinates
    DDX UV Input Vector 2 None The UV derivatives for x
    DDY UV Input Vector 2 None The UV derivatives for y
    LOD Input Float None LOD level of texture to sample
    Height Scale Input Float None Scale applied to height values
    Deriv Output Vector 2 None Output texture space height derivatives
    Normal Output Vector 3 None Output tangent space normal

    Controls

    Name Type Options Description
    Height Quality Dropdown High, Medium, Low Selects the technique used to interpret height textures
    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