Preload PNG files also

This commit is contained in:
David Rowe 2017-10-12 13:58:18 +13:00
parent f3b2ccf5f8
commit 74899e4798

View file

@ -34,8 +34,10 @@ Preload = (function () {
for (property in item) {
if (item.hasOwnProperty(property)) {
if (property === "url") {
urls.push(item.url);
if (property === "url" || property === "imageURL" || property === "imageOverlayURL") {
if (item[property]) {
urls.push(item[property]);
}
} else if (typeof item[property] === "object") {
findURLsInObject(item[property]);
}
@ -95,6 +97,14 @@ Preload = (function () {
ignoreRayIntersection: true,
alpha: 0.0,
visible: false
},
png: {
overlay: "image3d",
scale: 0.001,
position: DOMAIN_CORNER,
ignoreRayIntersection: true,
alpha: 0.0,
visible: false
}
},
fileType,