LiteFX::Rendering::IBottomLevelAccelerationStructure::withBoundingBox¶
Adds a buffer containing axis-aligned bounding boxes to the BLAS.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
template<typename TSelf>
TSelf&& withBoundingBox(this
TSelf&& self,
BoundingBoxes const& aabb);
Exceptions¶
| Name | Thrown on |
|---|---|
RuntimeException | Thrown, if the acceleration structure already contains triangle meshes. |
Return Value¶
A reference to the current BLAS.
Parameters¶
| Name | Description |
|---|---|
| aabb | The bounding box buffer to add to the BLAS. |