Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Feature Request Can we have node similar to Color Ramp in blender?

Discussion in 'Shader Graph' started by JacobFast, Jun 8, 2020.

  1. JacobFast

    JacobFast

    Joined:
    Apr 29, 2014
    Posts:
    38
    Please, 99% of every blender material tutorial uses this node extensively
     
    mGMM, florianBrn and keeponshading like this.
  2. alexanderameye

    alexanderameye

    Joined:
    Nov 27, 2013
    Posts:
    1,373
    fjolne and chiragmidha50 like this.
  3. JacobFast

    JacobFast

    Joined:
    Apr 29, 2014
    Posts:
    38
  4. alexanderameye

    alexanderameye

    Joined:
    Nov 27, 2013
    Posts:
    1,373
    But this could be done with a gradient node no?

    You make a gradient node, set it to that red/blue/yellow/pink hard cutoff gradient, put it in the gradient slot of the 'sample gradient node' and then whatever you want (UV like in that image) into the 'time' slot.
     
    chaoszelo likes this.
  5. JacobFast

    JacobFast

    Joined:
    Apr 29, 2014
    Posts:
    38
    Mm.. Its does something similar but end result is noticeably different, see abdomen area, i think unity node implementation is different from what blender does.

    Here Unity


    here is blender
     
    maurofuentes likes this.
  6. Shaderic

    Shaderic

    Joined:
    Dec 8, 2017
    Posts:
    5
    The reason it looks different in unity might be because it uses the red channel of the texture whereas in blender it probably uses the average color or luminance. If you want to correctly sample the gradient you should use a saturation node between the sample texture 2D and the sample gradient node.
     
    chaoszelo, fjolne and maurofuentes like this.