This commit is contained in:
Atlante45 2015-07-14 12:36:18 -07:00
parent 7bf45308b6
commit a32f54da2f
2 changed files with 1 additions and 2 deletions

View file

@ -11,7 +11,6 @@
#include <QCommandLineParser>
#include <QDebug>
#include <QDir>
#include <QProcess>
#include <QSettings>
#include <QTranslator>

View file

@ -101,7 +101,7 @@ void Skybox::render(gpu::Batch& batch, const ViewFrustum& viewFrustum, const Sky
batch.setModelTransform(Transform()); // only for Mac
batch.setPipeline(thePipeline);
batch.setInputBuffer(gpu::Stream::POSITION, theBuffer, 0, 8);
//batch.setUniformBuffer(SKYBOX_CONSTANTS_SLOT, theConstants, 0, theConstants->getSize());
batch.setUniformBuffer(SKYBOX_CONSTANTS_SLOT, theConstants, 0, theConstants->getSize());
batch.setInputFormat(theFormat);
batch.setResourceTexture(0, skybox.getCubemap());
batch.draw(gpu::TRIANGLE_STRIP, 4);