mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:29:32 +02:00
remove skybox baking from domain baking
This commit is contained in:
parent
0b4a8d05aa
commit
2637040f17
1 changed files with 22 additions and 22 deletions
|
@ -191,28 +191,28 @@ void DomainBaker::enumerateEntities() {
|
||||||
_entitiesNeedingRewrite.insert(modelURL, *it);
|
_entitiesNeedingRewrite.insert(modelURL, *it);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// We check now to see if we have either a texture for a skybox or a keylight, or both.
|
// // We check now to see if we have either a texture for a skybox or a keylight, or both.
|
||||||
if (entity.contains(ENTITY_SKYBOX_KEY)) {
|
// if (entity.contains(ENTITY_SKYBOX_KEY)) {
|
||||||
auto skyboxObject = entity[ENTITY_SKYBOX_KEY].toObject();
|
// auto skyboxObject = entity[ENTITY_SKYBOX_KEY].toObject();
|
||||||
if (skyboxObject.contains(ENTITY_SKYBOX_URL_KEY)) {
|
// if (skyboxObject.contains(ENTITY_SKYBOX_URL_KEY)) {
|
||||||
// we have a URL to a skybox, grab it
|
// // we have a URL to a skybox, grab it
|
||||||
QUrl skyboxURL { skyboxObject[ENTITY_SKYBOX_URL_KEY].toString() };
|
// QUrl skyboxURL { skyboxObject[ENTITY_SKYBOX_URL_KEY].toString() };
|
||||||
|
//
|
||||||
// setup a bake of the skybox
|
// // setup a bake of the skybox
|
||||||
bakeSkybox(skyboxURL, *it);
|
// bakeSkybox(skyboxURL, *it);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
if (entity.contains(ENTITY_KEYLIGHT_KEY)) {
|
// if (entity.contains(ENTITY_KEYLIGHT_KEY)) {
|
||||||
auto keyLightObject = entity[ENTITY_KEYLIGHT_KEY].toObject();
|
// auto keyLightObject = entity[ENTITY_KEYLIGHT_KEY].toObject();
|
||||||
if (keyLightObject.contains(ENTITY_KEYLIGHT_AMBIENT_URL_KEY)) {
|
// if (keyLightObject.contains(ENTITY_KEYLIGHT_AMBIENT_URL_KEY)) {
|
||||||
// we have a URL to a skybox, grab it
|
// // we have a URL to a skybox, grab it
|
||||||
QUrl skyboxURL { keyLightObject[ENTITY_KEYLIGHT_AMBIENT_URL_KEY].toString() };
|
// QUrl skyboxURL { keyLightObject[ENTITY_KEYLIGHT_AMBIENT_URL_KEY].toString() };
|
||||||
|
//
|
||||||
// setup a bake of the skybox
|
// // setup a bake of the skybox
|
||||||
bakeSkybox(skyboxURL, *it);
|
// bakeSkybox(skyboxURL, *it);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue