4 ms·
It renders to Canvas, so it should be already possible; three.js even already conveniently allows creating texture from a canvas: var texture = new THREE.Tex
by wildpeaks 12y ago
It renders to Canvas, so it should be already possible; three.js even already conveniently allows creating texture from a canvas:
var texture = new THREE.Texture(theCanvas);
texture.needsUpdate = true; //refreshes the texture from the source canvas
Now combine it with React.js to avoid redrawing unless necessary and forward the mouse events back to Webkit.js, and you have an interactive HTML texture :)