debug precompute ambiant, templating LMS for sphere precomputation