mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 22:27:43 +00:00
Implement CParticleGenInfoGeneric
This commit is contained in:
@@ -483,11 +483,11 @@ void CBooRenderer::PostRenderFogs()
|
||||
|
||||
void CBooRenderer::AddParticleGen(const CParticleGen& gen)
|
||||
{
|
||||
std::pair<zeus::CAABox, bool> bounds = gen.GetBounds();
|
||||
if (bounds.second)
|
||||
auto bounds = gen.GetBounds();
|
||||
if (bounds)
|
||||
{
|
||||
zeus::CVector3f pt = bounds.first.closestPointAlongVector(xb0_viewPlane.vec);
|
||||
Buckets::Insert(pt, bounds.first, EDrawableType::Particle, &gen, xb0_viewPlane, 0);
|
||||
zeus::CVector3f pt = bounds.value().closestPointAlongVector(xb0_viewPlane.vec);
|
||||
Buckets::Insert(pt, bounds.value(), EDrawableType::Particle, &gen, xb0_viewPlane, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user