/* (non-Javadoc)
* @see ca.eandb.jmist.framework.Light#illuminate(ca.eandb.jmist.framework.SurfacePoint, ca.eandb.jmist.framework.color.WavelengthPacket, ca.eandb.jmist.framework.Random, ca.eandb.jmist.framework.Illuminable)
*/
public void illuminate(SurfacePoint x, WavelengthPacket lambda, Random rng, final Illuminable target) {
int index = RandomUtil.discrete(0, children().size() - 1, rng);
children().get(index).illuminate(x, lambda, rng, new Illuminable() {
public void addLightSample(LightSample sample) {
target.addLightSample(ScaledLightSample.create(children().size(), sample));
}
});
}