How does three implement a model in two colors

Currently three wants to achieve the effect shown in the image, a model two colors; And another color gradually covers another color with the Y-axis;hope you can help, thank you

As long as you want the division between colors to be a flat plane, you can use clipping planes to achieve this.

1 Like

All the same, but one mesh
Clipping won’t work anymore though :sweat_smile:, as its chunk is removed from fragment shader.


@prisoner849 nice! :grin:

1 Like

Thank you very much for your answer and the question has been resolved