mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Removed cull functor from shadow render task as it is inadapted for the shadow's orthographic projection
This commit is contained in:
parent
fbcb2924e8
commit
79c2da3dcb
1 changed files with 4 additions and 1 deletions
|
@ -19,7 +19,10 @@
|
|||
void RenderViewTask::build(JobModel& task, const render::Varying& input, render::Varying& output, render::CullFunctor cullFunctor, bool isDeferred) {
|
||||
// auto items = input.get<Input>();
|
||||
|
||||
task.addJob<RenderShadowTask>("RenderShadowTask", cullFunctor);
|
||||
// Shadows use an orthographic projection because they are linked to sunlights
|
||||
// but the cullFunctor passed is probably tailored for perspective projection and culls too much.
|
||||
// TODO : create a special cull functor for this.
|
||||
task.addJob<RenderShadowTask>("RenderShadowTask", nullptr);
|
||||
|
||||
const auto items = task.addJob<RenderFetchCullSortTask>("FetchCullSort", cullFunctor);
|
||||
assert(items.canCast<RenderFetchCullSortTask::Output>());
|
||||
|
|
Loading…
Reference in a new issue