fixed XYZGrid to behave more like a diffuse material