Showing the changes to libraries/render-utils/src/DeferredLightingEffect.cpp (1 of 8 files). Show all
Unified · Split
| @@ -191,7 +191,7 @@ void DeferredLightingEffect::addSpotLight(const glm::vec3& position, float radiu · 190 unmodified lines | |||
| 191 | } | 191 | } |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | void DeferredLightingEffect::prepare() { | 194 | void DeferredLightingEffect::prepare(RenderArgs* args) { |
| 195 | // clear the normal and specular buffers | 195 | // clear the normal and specular buffers |
| 196 | auto textureCache = DependencyManager::get<TextureCache>(); | 196 | auto textureCache = DependencyManager::get<TextureCache>(); |
| 197 | textureCache->setPrimaryDrawBuffers(false, true, false); | 197 | textureCache->setPrimaryDrawBuffers(false, true, false); |
| @@ -205,7 +205,7 @@ void DeferredLightingEffect::prepare() { · 7 unmodified lines | |||
| 205 | textureCache->setPrimaryDrawBuffers(true, false, false); | 205 | textureCache->setPrimaryDrawBuffers(true, false, false); |
| 206 | } | 206 | } |
| 207 | 207 | ||
| 208 | void DeferredLightingEffect::render() { | 208 | void DeferredLightingEffect::render(RenderArgs* args) { |
| 209 | // perform deferred lighting, rendering to free fbo | 209 | // perform deferred lighting, rendering to free fbo |
| 210 | glDisable(GL_BLEND); | 210 | glDisable(GL_BLEND); |
| 211 | glDisable(GL_LIGHTING); | 211 | glDisable(GL_LIGHTING); |