mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
cleanup
This commit is contained in:
parent
2356a071dd
commit
b5731135dd
3 changed files with 9 additions and 11 deletions
|
@ -3330,11 +3330,13 @@ namespace render {
|
|||
PerformanceTimer perfTimer("atmosphere");
|
||||
PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings),
|
||||
"Application::displaySide() ... atmosphere...");
|
||||
gpu::Batch batch;
|
||||
//DependencyManager::get<DeferredLightingEffect>()->renderSolidSphere(batch,0.5f, 100, 50, glm::vec4(1.0f, 0.0f, 0.0f, 1.0f)); //Draw a unit sphere
|
||||
|
||||
background->_environment->renderAtmospheres(batch, *(args->_viewFrustum));
|
||||
|
||||
// FIX ME - If I don't call this renderBatch() here, then the atmosphere doesn't render, but it
|
||||
// seems like these payloadRender() methods shouldn't be doing this. We need to investigate why
|
||||
// the engine isn't rendering our batch
|
||||
gpu::GLBackend::renderBatch(batch, true);
|
||||
glUseProgram(0);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -15,18 +15,15 @@
|
|||
#include <QMutexLocker>
|
||||
#include <QtDebug>
|
||||
|
||||
#include <DeferredLightingEffect.h>
|
||||
#include <GeometryCache.h>
|
||||
#include <GeometryUtil.h>
|
||||
#include <NumericalConstants.h>
|
||||
#include <OctreePacketData.h>
|
||||
#include <PacketHeaders.h>
|
||||
#include <PathUtils.h>
|
||||
#include <ProgramObject.h>
|
||||
#include <SharedUtil.h>
|
||||
|
||||
#include "Application.h"
|
||||
#include "Camera.h"
|
||||
#include "world.h"
|
||||
#include "InterfaceLogging.h"
|
||||
|
||||
#include "Environment.h"
|
||||
|
||||
#include "../../build/libraries/model/SkyFromSpace_vert.h"
|
||||
|
@ -52,7 +49,6 @@ Environment::~Environment() {
|
|||
|
||||
void Environment::init() {
|
||||
if (_initialized) {
|
||||
qCDebug(interfaceapp, "[ERROR] Environment is already initialized.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <HifiSockAddr.h>
|
||||
#include <gpu/Batch.h>
|
||||
|
||||
#include <ProgramObject.h>
|
||||
//#include <ProgramObject.h>
|
||||
|
||||
#include "EnvironmentData.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue