0
Fertiggestellt

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

Rolf vor 10 Jahren aktualisiert von Freya Holmér (Developer) vor 10 Jahren 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. 

Antwort

Antwort
Fertiggestellt
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 :)
Antwort
Fertiggestellt
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 :)