Apply color gradient to material on mesh - three.js
I have an STL file loaded into my scene with a single colour applied to a phong material I'd like a way of applying two colours to this mesh's material with a gradient effect applied on the Z axis a
https://stackoverflow.com/questions/52614371/apply-color-gradient-to-material-on-mesh-three-js