Search Unity

Question How to create a shadergraph that blends five colors in five directions

Discussion in 'Shader Graph' started by dansopanso, Mar 15, 2021.

  1. dansopanso

    dansopanso

    Joined:
    Jun 14, 2018
    Posts:
    11
    Hey there,

    I'm trying to create a shadergraph that divides world space into 5 different colors (just like in this circle but in 3D-Worldspace) sphere 5 cut.JPG
    I managed to get something like this but it is actually only made out of 4 colours and the 5th one is created by addiditve color wich does not really allow me to get the color combination i need 5 color cube.JPG

    can somebody help me to figure out how to do this? Thank you very much in advance. The shadergraph of the cube above looks like this. as you can see one clamp goes into the albedo and one in to emission. I tried to combine them but only got strange results and ideally i need to divide world space in 5 directions shadergraph example.JPG