Showing the changes to libraries/render-utils/src/DeferredLightingEffect.cpp (1 of 13 files). Show all
Unified · Split
| @@ -365,6 +365,7 @@ void PrepareDeferred::run(const RenderContextPointer& renderContext, const Input · 364 unmodified lines | ||
| 365 | 365 | |
| 366 | 366 | // For the rest of the rendering, bind the lighting model |
| 367 | 367 | batch.setUniformBuffer(ru::Buffer::LightModel, lightingModel->getParametersBuffer()); |
| 368 | + batch.setResourceTexture(ru::Texture::AmbientFresnel, lightingModel->getAmbientFresnelLUT()); | |
| 368 | 369 | }); |
| 369 | 370 | } |
| 370 | 371 | |
| @@ -416,6 +417,7 @@ void RenderDeferredSetup::run(const render::RenderContextPointer& renderContext, · 45 unmodified lines | ||
| 416 | 417 | |
| 417 | 418 | // THe lighting model |
| 418 | 419 | batch.setUniformBuffer(ru::Buffer::LightModel, lightingModel->getParametersBuffer()); |
| 420 | + batch.setResourceTexture(ru::Texture::AmbientFresnel, lightingModel->getAmbientFresnelLUT()); | |
| 419 | 421 | |
| 420 | 422 | // Subsurface scattering specific |
| 421 | 423 | if (surfaceGeometryFramebuffer) { |