Skip to content

Instantly share code, notes, and snippets.

@jgdoncel
Created October 24, 2013 17:20
Show Gist options
  • Select an option

  • Save jgdoncel/7141385 to your computer and use it in GitHub Desktop.

Select an option

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
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