Exploring a simple setup concept: https://gist.github.com/ichbinadrian/4758155
The idea is to color fragments based on their distance from the lowest or highest vertex, like a mountain range. How can I store a value in the shader for future processing, considering that vertices will be repositioned over time?
This is the goal, but I'm struggling with updating vertices and faces after changing attribute values. It was easier when I manipulated vertex positions outside of the shader and set xNeedUpdate = true.
Shaders are more complex than they seem.