Drawing on 2D canvas texture and rendering to 3D object

Hi everyone,

I want to ask, is there any possibility to draw on the 2d canvas texture and the results of the drawing appear on the 3d canvas. I have an example in threeJS which I attach below. Thank you.

https://threejs.org/examples/webgl_materials_texture_canvas