I’m clueless with shaders, is there any way I can make it go from red to blue from start to finish? Rather than based on the y position.
(if you follow the line currently you can see it goes red, purple, blue, purple, blue… whereas I want red, purple, blue).
I’d want something like
vUv.y = index / totalVertices
Or am I talking nonsense and this isn’t how shaders work at all?
Decided to follow up on this thread instead of of starting a new post.
I’ve been playing with the MeshTransmissionMaterial and my best case is to use this same material but with a gradient color effect.
I am trying to get a Popsicle Color ( color graduation within the loaded mesh)
I’ve tried the drei ShaderMaterial and Gradient Texture but I was only able to get material “wrapped around the mesh”.
My mesh is hollowed vase.
Mesh Tranmission Material examples have objects inside… I thought maybe creating another mesh with a gradient inside?
But I am quite sure I am over looking a simpler approach, something like layering the Mesh Transmission material with a correctly applied shader material ?