23 if (comp->drawImpostor() || comp->showDirectionCone()) {
25 descriptor.
root = -comp->directionCache() * comp->range();
26 descriptor.
direction = comp->directionCache();
27 descriptor.
length = comp->range();
#define PROFILE_SCOPE_AUTO(CATEGORY)
void PreUpdate(F32 dt) override
DirectionalLightSystem(ECS::ECSEngine &parentEngine, PlatformContext &context)
void PreUpdate(F32 dt) override
vector< DirectionalLightComponent * > _componentCache
void debugDrawCone(const I64 ID, IM::ConeDescriptor descriptor) noexcept
PlatformContext & context() noexcept
GFXDevice & gfx() noexcept
constexpr Optick::Category::Type Scene
UColour4 ToByteColour(const FColour4 &floatColour) noexcept
Handle console commands that start with a forward slash.
DirectionalLightComponent(SceneGraphNode *sgn, PlatformContext &context)