MCPcopy Create free account
hub / github.com/DFHack/dfhack / addLight

Method addLight

plugins/rendermax/renderer_light.cpp:367–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365 radius=std::max(other.radius,radius);//hack... but who cares
366}
367bool lightingEngineViewscreen::addLight(int tileId,const lightSource& light)
368{
369 bool wasLight=lights[tileId].radius>0;
370 lights[tileId].combine(light);
371 if(light.flicker)
372 lights[tileId].flicker=true;
373 return wasLight;
374}
375void lightingEngineViewscreen::addOclusion(int tileId,const rgbf& c,float thickness)
376{
377 if(thickness > 0.999 && thickness < 1.001)

Callers

nothing calls this directly

Calls 1

combineMethod · 0.80

Tested by

no test coverage detected