2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 16:46:10 +00:00

Fully decouple hecl from Metaforce

- Added CStringExtras Convert functions
  (and UTF-compatible versions)
- GX header copied into Runtime
- SFX headers copied into Runtime/Audio
This commit is contained in:
2022-02-21 04:04:16 -05:00
committed by Phillip Stephens
parent 6c92f03664
commit 57d96dbb17
120 changed files with 4865 additions and 518 deletions

View File

@@ -712,11 +712,11 @@ CBooRenderer::~CBooRenderer() { g_Renderer = nullptr; }
void CBooRenderer::AddWorldSurfaces(CBooModel& model) {
CBooSurface* surf = model.x3c_firstSortedSurface;
while (surf) {
const MaterialSet::Material& mat = model.GetMaterialByIndex(surf->m_data.matIdx);
// const MaterialSet::Material& mat = model.GetMaterialByIndex(surf->m_data.matIdx);
zeus::CAABox aabb = surf->GetBounds();
zeus::CVector3f pt = aabb.closestPointAlongVector(xb0_viewPlane.normal());
Buckets::Insert(pt, aabb, EDrawableType::WorldSurface, surf, xb0_viewPlane,
mat.blendMode == MaterialSet::Material::BlendMaterial::BlendMode::Alpha);
/*mat.blendMode == MaterialSet::Material::BlendMaterial::BlendMode::Alpha*/ false);
surf = surf->m_next;
}
}