cross origin mipmaps

beta.r3js.org
Theunis Johannes Botha 2016-10-01 01:10:02 +02:00
parent b9895f5444
commit 683607d7bf
1 changed files with 3 additions and 1 deletions

View File

@ -1917,6 +1917,8 @@ GameLib.D3.prototype.loadMap = function(gameLibTexture, threeMaterial, threeMate
if (imagePath) {
this.textureLoader.crossOrigin = '';
this.textureLoader.load(
imagePath,
function(texture) {
@ -2367,7 +2369,7 @@ GameLib.D3.prototype.loadSceneFromApi = function(sceneName, onLoaded) {
var xhr = new XMLHttpRequest();
xhr.open(
'GET',
this.apiUrl + '/scene/pong%20latest'
this.apiUrl + '/scene/' + sceneName
);
xhr.onreadystatechange = function(xhr, gameLibD3) {