mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 12:12:39 +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) {
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue