3D spatial shader graident between two colors
Hey! I'm trying to learn how shaders work!
I'm learning by writing a bunch of spatial shaders for a 3d waterfall.
Something I'd like to do is have a graident for the "main part" of the waterfall. so at the top, it'd start at color1 and ends with color2. with a gradient of the two in-between.
I'm unsure how to write this code, specifically for a 3D spatial shader?
here's what I've got so far: