mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 07:43:57 +02:00
Propogate configuration changes through tasks
This commit is contained in:
parent
e73902899b
commit
59ac93485e
2 changed files with 1 additions and 2 deletions
|
@ -121,6 +121,7 @@ RenderShadowTask::RenderShadowTask(CullFunctor cullFunctor) : Task(std::make_sha
|
|||
|
||||
void RenderShadowTask::configure(const Config& configuration) {
|
||||
DependencyManager::get<DeferredLightingEffect>()->setShadowMapEnabled(configuration.enabled);
|
||||
Task::configure(configuration);
|
||||
}
|
||||
|
||||
void RenderShadowTask::run(const SceneContextPointer& sceneContext, const render::RenderContextPointer& renderContext) {
|
||||
|
|
|
@ -101,8 +101,6 @@ template <class T, class C> void jobConfigure(T& model, const C& configuration)
|
|||
}
|
||||
template<class T> void jobConfigure(T&, const JobConfig&) {
|
||||
}
|
||||
template<class T> void jobConfigure(T&, const TaskConfig&) {
|
||||
}
|
||||
|
||||
// FIXME: In c++17, use default classes of nullptr_t to combine these
|
||||
template <class T> void jobRun(T& model, const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext) {
|
||||
|
|
Loading…
Reference in a new issue