Search Unity

How to expose the gradient in ShaderGraph and change it via code?

Discussion in 'Graphics Experimental Previews' started by Cell-i-Zenit, Dec 19, 2019.

  1. Cell-i-Zenit

    Cell-i-Zenit

    Joined:
    Mar 11, 2016
    Posts:
    100
    Hi,

    there is a Gradient Property in ShaderGraph and i would like to set the values differently via Code.

    How can i do that?
     
  2. cuzner

    cuzner

    Joined:
    Oct 1, 2015
    Posts:
    2
    Why is the Gradient Property in ShaderGraph not exposable??
    This is a fundamental basic operation. What is the point of the gradient if you can only use it in the graph and not modify the values.

    ShaderGraph is a great tool but definitely needs work.
    Blender3D has had this functionality for Years!!
     
unityunity