Selaa lähdekoodia

added CORS for imageLoader

Jaume Sanchez 8 vuotta sitten
vanhempi
commit
3b23fd07c6
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      examples/webgl_loader_imagebitmap.html

+ 1 - 0
examples/webgl_loader_imagebitmap.html

@@ -106,6 +106,7 @@
 			function addImage () {
 
 				new THREE.ImageLoader()
+					.setCrossOrigin( '*' )
 					.load( 'textures/planets/earth_atmos_2048.jpg?' + performance.now(), function( image ) {
 							var tex = new THREE.CanvasTexture( image );
 							addCube( tex );