mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:57:58 +02:00
Preload PNG files also
This commit is contained in:
parent
f3b2ccf5f8
commit
74899e4798
1 changed files with 12 additions and 2 deletions
|
@ -34,8 +34,10 @@ Preload = (function () {
|
||||||
|
|
||||||
for (property in item) {
|
for (property in item) {
|
||||||
if (item.hasOwnProperty(property)) {
|
if (item.hasOwnProperty(property)) {
|
||||||
if (property === "url") {
|
if (property === "url" || property === "imageURL" || property === "imageOverlayURL") {
|
||||||
urls.push(item.url);
|
if (item[property]) {
|
||||||
|
urls.push(item[property]);
|
||||||
|
}
|
||||||
} else if (typeof item[property] === "object") {
|
} else if (typeof item[property] === "object") {
|
||||||
findURLsInObject(item[property]);
|
findURLsInObject(item[property]);
|
||||||
}
|
}
|
||||||
|
@ -95,6 +97,14 @@ Preload = (function () {
|
||||||
ignoreRayIntersection: true,
|
ignoreRayIntersection: true,
|
||||||
alpha: 0.0,
|
alpha: 0.0,
|
||||||
visible: false
|
visible: false
|
||||||
|
},
|
||||||
|
png: {
|
||||||
|
overlay: "image3d",
|
||||||
|
scale: 0.001,
|
||||||
|
position: DOMAIN_CORNER,
|
||||||
|
ignoreRayIntersection: true,
|
||||||
|
alpha: 0.0,
|
||||||
|
visible: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fileType,
|
fileType,
|
||||||
|
|
Loading…
Reference in a new issue