final double scale = totalSurfaceArea / emissive.size();
final double totalWeight = totalSurfaceArea;
final CategoricalRandom rnd = new CategoricalRandom(weight);
return new AbstractLight() {
private static final long serialVersionUID = -8364217558705142738L;
public void illuminate(SurfacePoint x, WavelengthPacket lambda, Random rng, Illuminable target) {
ShadingContext context = new MinimalShadingContext(rng);