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

Method DrawLightsDebug

Source/Engine/Level/Actors/PointLight.cpp:152–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void PointLight::DrawLightsDebug(RenderView& view)
153{
154 const BoundingSphere sphere(_sphere.Center - view.Origin, _sphere.Radius);
155 if (!view.CullingFrustum.Intersects(sphere) || !EnumHasAnyFlags(view.Flags, ViewFlags::PointLights))
156 return;
157
158 // Draw influence range
159 DEBUG_DRAW_WIRE_SPHERE(_sphere, Color::Yellow, 0, true);
160}
161
162#endif
163

Callers

nothing calls this directly

Calls 2

EnumHasAnyFlagsFunction · 0.85
IntersectsMethod · 0.45

Tested by

no test coverage detected