Graphics Reference
In-Depth Information
official HTML5 documentation at http://www.w3.org/TR/html5/editing.html#drag-and-
drop-processing-model .
One interesting thing to note is the addition of texture.needsUpdate = true to
the ondrop event handler. The reason we need to set this property of the texture is
to inform Three.js that our texture has changed. This is needed because WebGL and
also Three.js caches textures for performance reasons. If we change a texture, we
have to set this property to true to make sure that WebGL knows what to render.
Search WWH ::




Custom Search