Skip to content
Snippets Groups Projects
Commit 6ceffcbc authored by netpro2k's avatar netpro2k
Browse files

Ensure image texture gets updated

parent 15a38ffc
No related branches found
No related tags found
No related merge requests found
......@@ -239,6 +239,7 @@ AFRAME.registerComponent("image-plus", {
material.transparent = true;
material.map = texture;
material.needsUpdate = true;
material.map.needsUpdate = true;
const geometry = new THREE.PlaneGeometry(width, height, 1, 1);
this.mesh = new THREE.Mesh(geometry, material);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment