SpatialRender.sc restructured