Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 6 files). Show all
Unified · Split
| @@ -146,11 +146,6 @@ void RenderDeferredTask::build(JobModel& task, const render::Varying& input, ren · 145 unmodified lines | |||
| 146 | const auto ambientOcclusionFramebuffer = ambientOcclusionOutputs.getN<AmbientOcclusionEffect::Outputs>(0); | 146 | const auto ambientOcclusionFramebuffer = ambientOcclusionOutputs.getN<AmbientOcclusionEffect::Outputs>(0); |
| 147 | const auto ambientOcclusionUniforms = ambientOcclusionOutputs.getN<AmbientOcclusionEffect::Outputs>(1); | 147 | const auto ambientOcclusionUniforms = ambientOcclusionOutputs.getN<AmbientOcclusionEffect::Outputs>(1); |
| 148 | 148 | ||
| 149 | // Velocity | ||
| 150 | const auto velocityBufferInputs = VelocityBufferPass::Inputs(deferredFrameTransform, deferredFramebuffer).asVarying(); | ||
| 151 | const auto velocityBufferOutputs = task.addJob<VelocityBufferPass>("VelocityBuffer", velocityBufferInputs); | ||
| 152 | const auto velocityBuffer = velocityBufferOutputs.getN<VelocityBufferPass::Outputs>(0); | ||
| 153 | |||
| 154 | // Draw Lights just add the lights to the current list of lights to deal with. NOt really gpu job for now. | 149 | // Draw Lights just add the lights to the current list of lights to deal with. NOt really gpu job for now. |
| 155 | task.addJob<DrawLight>("DrawLight", lights); | 150 | task.addJob<DrawLight>("DrawLight", lights); |
| 156 | 151 | ||
| @@ -246,6 +241,11 @@ void RenderDeferredTask::build(JobModel& task, const render::Varying& input, ren · 89 unmodified lines | |||
| 246 | task.addJob<DrawBounds>("DrawOverlayInFrontTransparentBounds", overlaysInFrontTransparent); | 241 | task.addJob<DrawBounds>("DrawOverlayInFrontTransparentBounds", overlaysInFrontTransparent); |
| 247 | } | 242 | } |
| 248 | 243 | ||
| 244 | // Velocity | ||
| 245 | const auto velocityBufferInputs = VelocityBufferPass::Inputs(deferredFrameTransform, deferredFramebuffer).asVarying(); | ||
| 246 | const auto velocityBufferOutputs = task.addJob<VelocityBufferPass>("VelocityBuffer", velocityBufferInputs); | ||
| 247 | const auto velocityBuffer = velocityBufferOutputs.getN<VelocityBufferPass::Outputs>(0); | ||
| 248 | |||
| 249 | // AA job to be revisited | 249 | // AA job to be revisited |
| 250 | const auto antialiasingInputs = Antialiasing::Inputs(deferredFrameTransform, primaryFramebuffer, linearDepthTarget, velocityBuffer).asVarying(); | 250 | const auto antialiasingInputs = Antialiasing::Inputs(deferredFrameTransform, primaryFramebuffer, linearDepthTarget, velocityBuffer).asVarying(); |
| 251 | task.addJob<Antialiasing>("Antialiasing", antialiasingInputs); | 251 | task.addJob<Antialiasing>("Antialiasing", antialiasingInputs); |