mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 22:30:42 +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);
|
||||
}
|
||||
} else {
|
||||
// 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)) {
|
||||
auto skyboxObject = entity[ENTITY_SKYBOX_KEY].toObject();
|
||||
if (skyboxObject.contains(ENTITY_SKYBOX_URL_KEY)) {
|
||||
// we have a URL to a skybox, grab it
|
||||
QUrl skyboxURL { skyboxObject[ENTITY_SKYBOX_URL_KEY].toString() };
|
||||
|
||||
// setup a bake of the skybox
|
||||
bakeSkybox(skyboxURL, *it);
|
||||
}
|
||||
}
|
||||
|
||||
if (entity.contains(ENTITY_KEYLIGHT_KEY)) {
|
||||
auto keyLightObject = entity[ENTITY_KEYLIGHT_KEY].toObject();
|
||||
if (keyLightObject.contains(ENTITY_KEYLIGHT_AMBIENT_URL_KEY)) {
|
||||
// we have a URL to a skybox, grab it
|
||||
QUrl skyboxURL { keyLightObject[ENTITY_KEYLIGHT_AMBIENT_URL_KEY].toString() };
|
||||
|
||||
// setup a bake of the skybox
|
||||
bakeSkybox(skyboxURL, *it);
|
||||
}
|
||||
}
|
||||
// // 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)) {
|
||||
// auto skyboxObject = entity[ENTITY_SKYBOX_KEY].toObject();
|
||||
// if (skyboxObject.contains(ENTITY_SKYBOX_URL_KEY)) {
|
||||
// // we have a URL to a skybox, grab it
|
||||
// QUrl skyboxURL { skyboxObject[ENTITY_SKYBOX_URL_KEY].toString() };
|
||||
//
|
||||
// // setup a bake of the skybox
|
||||
// bakeSkybox(skyboxURL, *it);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if (entity.contains(ENTITY_KEYLIGHT_KEY)) {
|
||||
// auto keyLightObject = entity[ENTITY_KEYLIGHT_KEY].toObject();
|
||||
// if (keyLightObject.contains(ENTITY_KEYLIGHT_AMBIENT_URL_KEY)) {
|
||||
// // we have a URL to a skybox, grab it
|
||||
// QUrl skyboxURL { keyLightObject[ENTITY_KEYLIGHT_AMBIENT_URL_KEY].toString() };
|
||||
//
|
||||
// // setup a bake of the skybox
|
||||
// bakeSkybox(skyboxURL, *it);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue