Created
October 24, 2013 17:20
-
-
Save jgdoncel/7141385 to your computer and use it in GitHub Desktop.
Three.js - Usar una imagen base 64 como textura
From https://github.com/mrdoob/three.js/issues/3430
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var image = document.createElement( 'img' ); | |
| var texture = new THREE.Texture( image ); | |
| image.onload = function() { | |
| texture.needsUpdate = true; | |
| ... | |
| }; | |
| image.src = 'data:image/png;base64,XXXXX'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment