Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 39 files). Show all
Unified · Split
| @@ -5,6 +5,7 @@ · 4 unmodified lines | |||
| 5 | // | 5 | // |
| 6 | // Created by Sam Gateau on 5/29/15. | 6 | // Created by Sam Gateau on 5/29/15. |
| 7 | // Copyright 2016 High Fidelity, Inc. | 7 | // Copyright 2016 High Fidelity, Inc. |
| 8 | // Copyright 2024 Overte e.V. | ||
| 8 | // | 9 | // |
| 9 | // Distributed under the Apache License, Version 2.0. | 10 | // Distributed under the Apache License, Version 2.0. |
| 10 | // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | 11 | // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html |
| @@ -514,8 +515,8 @@ void RenderTransparentDeferred::run(const RenderContextPointer& renderContext, c · 503 unmodified lines | |||
| 514 | 515 | ||
| 515 | // Setup haze if current zone has haze | 516 | // Setup haze if current zone has haze |
| 516 | const auto& hazeStage = args->_scene->getStage<HazeStage>(); | 517 | const auto& hazeStage = args->_scene->getStage<HazeStage>(); |
| 517 | if (hazeStage && hazeFrame->_hazes.size() > 0) { | 518 | if (hazeStage && hazeFrame->_elements.size() > 0) { |
| 518 | const auto& hazePointer = hazeStage->getHaze(hazeFrame->_hazes.front()); | 519 | const auto& hazePointer = hazeStage->getElement(hazeFrame->_elements.front()); |
| 519 | if (hazePointer) { | 520 | if (hazePointer) { |
| 520 | batch.setUniformBuffer(graphics::slot::buffer::Buffer::HazeParams, hazePointer->getHazeParametersBuffer()); | 521 | batch.setUniformBuffer(graphics::slot::buffer::Buffer::HazeParams, hazePointer->getHazeParametersBuffer()); |
| 521 | } | 522 | } |