MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Draw

Method Draw

Source/Engine/Particles/ParticleEffect.cpp:607–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607void 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
618void ParticleEffect::Draw(RenderContextBatch& renderContextBatch)
619{

Callers 1

DrawParticlesMethod · 0.45

Calls 6

EnumHasNoneFlagsFunction · 0.85
MinFunction · 0.50
GetPositionFunction · 0.50
GetMainContextMethod · 0.45
CountMethod · 0.45
IntersectsMethod · 0.45

Tested by

no test coverage detected