*/
@Override
public ScatteredRay scatter(SurfacePoint x, Vector3 v, boolean adjoint,
WavelengthPacket lambda, double ru, double rv, double rj) {
SurfacePoint adapter = new SurfacePointAdapter(x);
ScatteredRay sr = inner.scatter(adapter, v, adjoint, lambda, ru, rv, rj);
if (sr != null) {
double idotn = -v.dot(x.getNormal());
double odotn = sr.getRay().direction().dot(x.getNormal());