cross origin mipmaps
parent
b9895f5444
commit
683607d7bf
|
@ -1917,6 +1917,8 @@ GameLib.D3.prototype.loadMap = function(gameLibTexture, threeMaterial, threeMate
|
||||||
|
|
||||||
if (imagePath) {
|
if (imagePath) {
|
||||||
|
|
||||||
|
this.textureLoader.crossOrigin = '';
|
||||||
|
|
||||||
this.textureLoader.load(
|
this.textureLoader.load(
|
||||||
imagePath,
|
imagePath,
|
||||||
function(texture) {
|
function(texture) {
|
||||||
|
@ -2367,7 +2369,7 @@ GameLib.D3.prototype.loadSceneFromApi = function(sceneName, onLoaded) {
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open(
|
xhr.open(
|
||||||
'GET',
|
'GET',
|
||||||
this.apiUrl + '/scene/pong%20latest'
|
this.apiUrl + '/scene/' + sceneName
|
||||||
);
|
);
|
||||||
|
|
||||||
xhr.onreadystatechange = function(xhr, gameLibD3) {
|
xhr.onreadystatechange = function(xhr, gameLibD3) {
|
||||||
|
|
Loading…
Reference in New Issue