From 2637040f174d99828acac297194a8db57f0e566f Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 26 Apr 2017 12:47:25 -0700 Subject: [PATCH] remove skybox baking from domain baking --- tools/oven/src/DomainBaker.cpp | 44 +++++++++++++++++----------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/tools/oven/src/DomainBaker.cpp b/tools/oven/src/DomainBaker.cpp index b93e852daa..cb2a6bca29 100644 --- a/tools/oven/src/DomainBaker.cpp +++ b/tools/oven/src/DomainBaker.cpp @@ -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); +// } +// } } } }