Looking to change the color of a face on a simple plane mesh at run-time by having a character walk over the “floor tile”.
Attempted solution:
face.color.setRGB(Math.random(), Math.random(), Math.random());
This approach is successful when using CanvasRenderer
, but fails when switching to WebGLRenderer
.
Even after setting the geometry.colorsNeedUpdate
flag and setting both the mesh and geometry as dynamic
, the issue remains unsolved. Is there another step I may be overlooking?
(Current version in use: Three.js r59)
Thank you,
Phil.