History

First alpha working version of outline

Olivier Prat committed 9 years ago

Commit 01a028c1 parent f36500a9 files · +260 −11Browse files

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

Unified · Split

libraries/render-utils/src/RenderDeferredTask.cpp+4−0
@@ -169,6 +169,10 @@ void RenderDeferredTask::build(JobModel& task, const render::Varying& input, ren · 168 unmodified lines
169 const auto toneMappingInputs = render::Varying(ToneMappingDeferred::Inputs(lightingFramebuffer, primaryFramebuffer));169 const auto toneMappingInputs = render::Varying(ToneMappingDeferred::Inputs(lightingFramebuffer, primaryFramebuffer));
170 task.addJob<ToneMappingDeferred>("ToneMapping", toneMappingInputs);170 task.addJob<ToneMappingDeferred>("ToneMapping", toneMappingInputs);
171 171
172 // Draw outline
173 const auto outlineInputs = DrawOutline::Inputs(deferredFramebuffer, outlinedFrameBuffer).hasVarying();
174 task.addJob<DrawOutline>("DrawOutline", outlineInputs);
175
172 { // DEbug the bounds of the rendered items, still look at the zbuffer176 { // DEbug the bounds of the rendered items, still look at the zbuffer
173 task.addJob<DrawBounds>("DrawMetaBounds", metas);177 task.addJob<DrawBounds>("DrawMetaBounds", metas);
174 task.addJob<DrawBounds>("DrawOpaqueBounds", opaques);178 task.addJob<DrawBounds>("DrawOpaqueBounds", opaques);