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

Class lightSource

plugins/rendermax/renderer_light.hpp:171–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 renderer_light* myRenderer;
170};
171struct lightSource
172{
173 rgbf power;
174 int radius;
175 bool flicker;
176 lightSource():power(0,0,0),radius(0),flicker(false)
177 {
178
179 }
180 lightSource(rgbf power,int radius);
181 float powerSquared()const
182 {
183 return power.r*power.r+power.g*power.g+power.b*power.b;
184 }
185 void combine(const lightSource& other);
186
187};
188struct matLightDef
189{
190 bool isTransparent;

Callers 3

calculateMethod · 0.85
doSunMethod · 0.85
makeSourceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected