0
Ukończony

Is it possible to shade color based on one axis' height?

Rolf 10 lat temu Ostatnio zmodyfikowane przez Freya Holmér (Developer) 10 lat temu 1
I'm trying to make a textureless shader that colors a 3D graph/surface with a gradient and having difficulty. It's for a data visualization application. 

Odpowiedź

Odpowiedź
Ukończony
This is more of a question for the forums, so, I'm closing this. Anyhow, here are some hints:

http://acegikmo.com/shaderforge/wiki/index.php?tit...
http://acegikmo.com/shaderforge/wiki/index.php?tit...

So what you probably want to do in this case, is to generate a gradient using the world position Y axis, if you want a gradient based on height :)
Odpowiedź
Ukończony
This is more of a question for the forums, so, I'm closing this. Anyhow, here are some hints:

http://acegikmo.com/shaderforge/wiki/index.php?tit...
http://acegikmo.com/shaderforge/wiki/index.php?tit...

So what you probably want to do in this case, is to generate a gradient using the world position Y axis, if you want a gradient based on height :)