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

Method makeSource

plugins/rendermax/renderer_light.hpp:201–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199 matLightDef(rgbf emit,int rad):isTransparent(false),transparency(0,0,0),isEmiting(true),emitColor(emit),radius(rad){}
200 matLightDef(rgbf transparency):isTransparent(true),transparency(transparency),isEmiting(false){}
201 lightSource makeSource(float size=1) const
202 {
203 if(size>0.999 && size<1.001)
204 return lightSource(emitColor,radius);
205 else
206 return lightSource(emitColor*size,radius*size);//todo check if this is sane
207 }
208};
209struct buildingLightDef
210{

Callers 2

applyMaterialMethod · 0.80
doOcupancyAndLightsMethod · 0.80

Calls 1

lightSourceClass · 0.85

Tested by

no test coverage detected