0
COMPLETADO

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

Rolf hace 10 años actualizado por Freya Holmér (Developer) hace 10 años 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. 

Respuesta

Respuesta
COMPLETADO
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 :)
Respuesta
COMPLETADO
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 :)