MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / renderLightSources

Method renderLightSources

source/game/StarItemDrop.cpp:322–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322void ItemDrop::renderLightSources(RenderCallback* renderCallback) {
323 LightSource light;
324 light.type = LightType::Spread;
325 light.color = Vec3F::filled(20.f / 255.f);
326 light.position = position();
327 renderCallback->addLightSource(std::move(light));
328}
329
330
331ItemPtr ItemDrop::item() const {

Callers

nothing calls this directly

Calls 1

addLightSourceMethod · 0.80

Tested by

no test coverage detected