mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:31:13 +02:00
Cleaning code
This commit is contained in:
parent
351b92627a
commit
deb303838d
2 changed files with 4 additions and 3 deletions
|
@ -456,9 +456,9 @@ void EntityTreeRenderer::render(RenderArgs::RenderMode renderMode,
|
||||||
if (_bestZone->getSkyboxProperties().getURL().isEmpty()) {
|
if (_bestZone->getSkyboxProperties().getURL().isEmpty()) {
|
||||||
stage->getSkybox()->clearCubemap();
|
stage->getSkybox()->clearCubemap();
|
||||||
} else {
|
} else {
|
||||||
|
// Update the Texture of the Skybox with the one pointed by this zone
|
||||||
auto cubeMap = DependencyManager::get<TextureCache>()->getTexture(_bestZone->getSkyboxProperties().getURL(), CUBE_TEXTURE);
|
auto cubeMap = DependencyManager::get<TextureCache>()->getTexture(_bestZone->getSkyboxProperties().getURL(), CUBE_TEXTURE);
|
||||||
|
stage->getSkybox()->setCubemap(cubeMap->getGPUTexture());
|
||||||
stage->getSkybox()->setCubemap(cubeMap->getGPUTexture()); // NOTE: this should be changed to do something to set the cubemap
|
|
||||||
}
|
}
|
||||||
stage->setBackgroundMode(model::SunSkyStage::SKY_BOX);
|
stage->setBackgroundMode(model::SunSkyStage::SKY_BOX);
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,8 @@
|
||||||
using namespace model;
|
using namespace model;
|
||||||
|
|
||||||
Skybox::Skybox() {
|
Skybox::Skybox() {
|
||||||
/*
|
|
||||||
|
/* // PLease create a default engineer skybox
|
||||||
_cubemap.reset( gpu::Texture::createCube(gpu::Element::COLOR_RGBA_32, 1));
|
_cubemap.reset( gpu::Texture::createCube(gpu::Element::COLOR_RGBA_32, 1));
|
||||||
unsigned char texels[] = {
|
unsigned char texels[] = {
|
||||||
255, 0, 0, 255,
|
255, 0, 0, 255,
|
||||||
|
|
Loading…
Reference in a new issue