Rename setupTransparent->setupBatch

This commit is contained in:
Zach Pomerantz 2016-02-05 10:53:01 -08:00
parent aa50d1e98e
commit a1ed29e6f8
3 changed files with 4 additions and 4 deletions

View file

@ -511,8 +511,8 @@ void DeferredLightingEffect::render(const render::RenderContextPointer& renderCo
}
}
void DeferredLightingEffect::setupTransparent(gpu::Batch& batch, int lightBufferUnit) {
PerformanceTimer perfTimer("DLE->setupTransparent()");
void DeferredLightingEffect::setupBatch(gpu::Batch& batch, int lightBufferUnit) {
PerformanceTimer perfTimer("DLE->setupBatch()");
auto globalLight = _allocatedLights[_globalLights.front()];
batch.setUniformBuffer(lightBufferUnit, globalLight->getSchemaBuffer());
}

View file

@ -46,7 +46,7 @@ public:
void prepare(RenderArgs* args);
void render(const render::RenderContextPointer& renderContext);
void setupTransparent(gpu::Batch& batch, int lightBufferUnit);
void setupBatch(gpu::Batch& batch, int lightBufferUnit);
// update global lighting
void setAmbientLightMode(int preset);

View file

@ -96,7 +96,7 @@ void lightBatchSetter(const ShapePipeline& pipeline, gpu::Batch& batch) {
batchSetter(pipeline, batch);
// Set the light
if (pipeline.locations->lightBufferUnit >= 0) {
DependencyManager::get<DeferredLightingEffect>()->setupTransparent(batch, pipeline.locations->lightBufferUnit);
DependencyManager::get<DeferredLightingEffect>()->setupBatch(batch, pipeline.locations->lightBufferUnit);
}
}