mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-13 16:06:08 +00:00
CModel: Mark CModelFlag instances as constexpr where applicable
Allows more runtime initializes to potentially be elided.
This commit is contained in:
@@ -520,7 +520,7 @@ void CFishCloud::RenderBoid(int idx, const CBoid& boid, u32& drawMask,
|
||||
model.GetModelInst()->SetAmbientColor(zeus::skWhite);
|
||||
CGraphics::SetModelMatrix(zeus::lookAt(boid.x0_pos, boid.x0_pos + boid.xc_vel));
|
||||
if (thermalHot) {
|
||||
CModelFlags thermFlags(0, 0, 3, zeus::skWhite);
|
||||
constexpr CModelFlags thermFlags(0, 0, 3, zeus::skWhite);
|
||||
mData.RenderThermal(zeus::skWhite, zeus::CColor(0.f, 0.25f), thermFlags);
|
||||
} else {
|
||||
mData.GetAnimationData()->Render(model, flags, std::nullopt, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user