BVH support (scrambled but basically working)