History

Integrating the tag flags to the render item key and adding configration of the render pipelien with the Tag information

samcake committed 8 years ago

Commit 1fd4c5c1 parent 04efaa07 files · +16 −12Browse files

Showing the changes to libraries/render-utils/src/RenderShadowTask.cpp (1 of 7 files). Show all

Unified · Split

libraries/render-utils/src/RenderShadowTask.cpp+2−4
@@ -216,7 +216,7 @@ void RenderShadowTask::build(JobModel& task, const render::Varying& input, rende · 215 unmodified lines
216216 task.addJob<RenderShadowSetup>("ShadowSetup");
217217
218218 for (auto i = 0; i < SHADOW_CASCADE_MAX_COUNT; i++) {
219− const auto setupOutput = task.addJob<RenderShadowCascadeSetup>("ShadowCascadeSetup", i);
219+ const auto setupOutput = task.addJob<RenderShadowCascadeSetup>("ShadowCascadeSetup", i, tagBits, tagMask);
220220 const auto shadowFilter = setupOutput.getN<RenderShadowCascadeSetup::Outputs>(1);
221221
222222 // CPU jobs:
@@ -259,14 +259,12 @@ void RenderShadowCascadeSetup::run(const render::RenderContextPointer& renderCon · 36 unmodified lines
259259 // Cache old render args
260260 RenderArgs* args = renderContext->args;
261261
262− // const auto& filterMask = inputs;
263−
264262 output.edit0() = args->_renderMode;
265263 output.edit2() = args->_sizeScale;
266264
267265 const auto globalShadow = lightStage->getCurrentKeyShadow();
268266 if (globalShadow && _cascadeIndex<globalShadow->getCascadeCount()) {
269− output.edit1() = ItemFilter::Builder::visibleWorldItems().withTypeShape().withOpaque().withoutLayered();
267+ output.edit1() = ItemFilter::Builder::visibleWorldItems().withTypeShape().withOpaque().withoutLayered().withTagBits(_tagBits, _tagMask);
270268
271269 globalShadow->setKeylightCascadeFrustum(_cascadeIndex, args->getViewFrustum(), SHADOW_FRUSTUM_NEAR, SHADOW_FRUSTUM_FAR);
272270

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t