Search Unity

Help Wanted How do i interpolate between multiple colors?

Discussion in 'Shader Graph' started by Leonetienne500, May 11, 2019.

  1. Leonetienne500

    Leonetienne500

    Joined:
    Dec 5, 2016
    Posts:
    76
    I want to color my terrain based on its height,
    I wanted to use the Sample Gradient node, but i am only getting errors and a pink terrain (missing material texture)
    (Node setup and error messages in pictures)
    Same for a normal unity cube.
    Yes, my terrain mesh is UV unwrapped.
    Sadly this node seems to be broken. Ive tried two unity versions so far.
    Any way to fix this? Or Any workarounds?
     

    Attached Files:

  2. alexandral_unity

    alexandral_unity

    Unity Technologies

    Joined:
    Jun 18, 2018
    Posts:
    119
    Shader Graph isn't yet compatible with terrain. We're working on it, but I don't have a timeline for when it will be released.
     
    Leonetienne500 likes this.
unityunity