Closed wjessup closed 3 years ago
lineMaterial.uniforms.color.value is already a THREE.Color, your setHSL function could get the uniform s a parameter, and .set(r,g,b)
Looks like to be an issue with the usage of THREE.Color
and not with the library itself.
It wasn't clear this was possible at first because its not in the documentation or any examples and the sort of functions that regularly make this work (color.setHSL) don't work.
Anyway, a bit of hacking and I got it working. May be nice to add.
I hacked apart the internals a bit and just added these modified functions to my project
and use it like this:
works great! demo: