break;
}
}
if (light.getType() == Light.Type.Spot) {
final SpotLight spot = (SpotLight) light;
setSpotCutoff(index, record, spot.getAngle(), lr);
final ReadOnlyVector3 direction = spot.getDirection();
setSpotDirection(index, record, direction.getXf(), direction.getYf(), direction.getZf(), 0);
setSpotExponent(index, record, spot.getExponent(), lr);
} else {
// set the cutoff to 180, which causes the other spot params to be
// ignored.
setSpotCutoff(index, record, 180, lr);
}