mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
Clean RenderShadowTask ctor
This commit is contained in:
parent
f3a5be9ec0
commit
625eee2b9c
1 changed files with 4 additions and 4 deletions
|
@ -81,16 +81,16 @@ RenderShadowTask::RenderShadowTask() : Task() {
|
|||
}
|
||||
|
||||
// CPU: Fetch shadow-casting opaques
|
||||
addJob<FetchItems>("FetchShadowMap");
|
||||
auto fetchedItems = addJob<FetchItems>("FetchShadowMap");
|
||||
|
||||
// CPU: Cull against KeyLight frustum (nearby viewing camera)
|
||||
addJob<CullItems<RenderDetails::SHADOW_ITEM>>("CullShadowMap", _jobs.back().getOutput());
|
||||
auto culledItems = addJob<CullItems<RenderDetails::SHADOW_ITEM>>("CullShadowMap", fetchedItems);
|
||||
|
||||
// CPU: Sort front to back
|
||||
addJob<DepthSortItems>("DepthSortShadowMap", _jobs.back().getOutput());
|
||||
auto shadowItems = addJob<DepthSortItems>("DepthSortShadowMap", culledItems);
|
||||
|
||||
// GPU: Render to shadow map
|
||||
addJob<RenderShadowMap>("RenderShadowMap", _jobs.back().getOutput(), shapePlumber);
|
||||
addJob<RenderShadowMap>("RenderShadowMap", shadowItems, shapePlumber);
|
||||
}
|
||||
|
||||
void RenderShadowTask::run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext) {
|
||||
|
|
Loading…
Reference in a new issue