Showing the changes to libraries/render-utils/src/RenderShadowTask.cpp (1 of 9 files). Show all
Unified · Split
| @@ -139,20 +139,6 @@ void RenderShadowTask::configure(const Config& configuration) { · 138 unmodified lines | ||
| 139 | 139 | Task::configure(configuration); |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | −void RenderShadowTask::run(const SceneContextPointer& sceneContext, const render::RenderContextPointer& renderContext) { | |
| 143 | − assert(sceneContext); | |
| 144 | − RenderArgs* args = renderContext->args; | |
| 145 | − | |
| 146 | − // sanity checks | |
| 147 | − if (!sceneContext->_scene || !args) { | |
| 148 | − return; | |
| 149 | − } | |
| 150 | − | |
| 151 | − for (auto job : _jobs) { | |
| 152 | − job.run(sceneContext, renderContext); | |
| 153 | − } | |
| 154 | −} | |
| 155 | − | |
| 156 | 142 | void RenderShadowSetup::run(const SceneContextPointer& sceneContext, const render::RenderContextPointer& renderContext, Output& output) { |
| 157 | 143 | auto lightStage = DependencyManager::get<DeferredLightingEffect>()->getLightStage(); |
| 158 | 144 | const auto globalShadow = lightStage->getShadow(0); |