cross origin mipmaps
parent
b9895f5444
commit
683607d7bf
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue