| 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 | }; |
| 209 | struct buildingLightDef |
| 210 | { |
no test coverage detected