From 5d5bb3db00ec697f10dab62f94725985dd55b5f9 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Sun, 20 Nov 2011 18:43:18 +0100 Subject: [PATCH] Added .crossOrigin = '' to Loader.load_image() (thanks @remoe). --- build/Three.js | 15 ++++++++------- build/custom/ThreeExtras.js | 15 ++++++++------- src/extras/loaders/Loader.js | 13 ++++++------- 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/build/Three.js b/build/Three.js index 75e707ec..b6bca8c3 100644 --- a/build/Three.js +++ b/build/Three.js @@ -556,13 +556,14 @@ u;n++)z=v[m][n],z=h[z[0]].position.clone().addSelf(h[z[1]].position).divideScala THREE.Loader=function(a){this.statusDomElement=(this.showStatus=a)?THREE.Loader.prototype.addStatusElement():null;this.onLoadStart=function(){};this.onLoadProgress=function(){};this.onLoadComplete=function(){}}; THREE.Loader.prototype={constructor:THREE.Loader,addStatusElement:function(){var a=document.createElement("div");a.style.position="absolute";a.style.right="0px";a.style.top="0px";a.style.fontSize="0.8em";a.style.textAlign="left";a.style.background="rgba(0,0,0,0.25)";a.style.color="#fff";a.style.width="120px";a.style.padding="0.5em 0.5em 0.5em 0.5em";a.style.zIndex=1E3;a.innerHTML="Loading ...";return a},updateProgress:function(a){var c="Loaded ";c+=a.total?(100*a.loaded/a.total).toFixed(0)+"%":(a.loaded/ 1E3).toFixed(2)+" KB";this.statusDomElement.innerHTML=c},extractUrlbase:function(a){a=a.split("/");a.pop();return a.length<1?"":a.join("/")+"/"},initMaterials:function(a,c,b){a.materials=[];for(var d=0;d