introduce intersectable interface
This commit is contained in:
@@ -80,6 +80,11 @@ namespace OpenVulkano::Scene
|
||||
m_billboardSettings = settings;
|
||||
}
|
||||
|
||||
std::optional<RayHit> LabelDrawable::Intersect(const Ray& ray) const
|
||||
{
|
||||
return ray.IntersectAABB(m_bbox);
|
||||
}
|
||||
|
||||
void LabelDrawable::RecalculateBbox(const Math::AABB& other)
|
||||
{
|
||||
if (m_bbox.IsEmpty())
|
||||
|
||||
Reference in New Issue
Block a user