Is there a way to add gradients or stripes to a material color?

We have are using MeshLambertMaterial and simply setting a color to the material, green for example.

If this threejs object has a ‘connection’ we want to change the look of the image without straying too far from its original color.

Is there a way to add gradients to the color? or stripes to the material?


You might achieve the mentioned effect with vertex colors. Please have a look at the code of this example and see, how the gradients of the floor are implemented.

The relevant section is:

1 Like

Hi Mugen87

Thank you for the reply and examples! We managed to implement the suggestion and it works great!


Neat. I applied this coloring to a small demo: