| 605 | } |
| 606 | |
| 607 | void ParticleEffect::Draw(RenderContext& renderContext) |
| 608 | { |
| 609 | if (renderContext.View.Pass == DrawPass::GlobalSDF || |
| 610 | renderContext.View.Pass == DrawPass::GlobalSurfaceAtlas || |
| 611 | EnumHasNoneFlags(renderContext.View.Flags, ViewFlags::Particles)) |
| 612 | return; |
| 613 | _lastMinDstSqr = Math::Min(_lastMinDstSqr, Vector3::DistanceSquared(GetPosition(), renderContext.View.WorldPosition)); |
| 614 | RenderContextBatch renderContextBatch(renderContext); |
| 615 | Particles::DrawParticles(renderContextBatch, this); |
| 616 | } |
| 617 | |
| 618 | void ParticleEffect::Draw(RenderContextBatch& renderContextBatch) |
| 619 | { |
no test coverage detected