Gradient shader

hey I am very new to GLSL shader, how do I make a simple gradient shader that I will put on my model, I just need a fff to 000 gradient, any example?

Hi @sir_akc,

Check this shader tutorial that transfers a gradient/palette shader from shadertoy to PlayCanvas. It’s a bit more complex compared to what you ask, but you can grab the interesting bits from it:


oh man, that is so cooolll!

1 Like