2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-16 01:37:03 +00:00

More CCubeMaterial, more CGraphics, more aurora::gx

This commit is contained in:
2022-03-06 02:46:42 -05:00
parent 7a61b6cf30
commit cd86dbd6ee
29 changed files with 484 additions and 299 deletions

View File

@@ -472,13 +472,12 @@ void CActorLights::ActivateLights() const {
if (lights.empty()) {
CGraphics::DisableAllLights();
} else {
for (int idx = 0; const auto& item : lights) {
CGraphics::LoadLight(static_cast<ERglLight>(idx), item);
for (ERglLight idx = 0; const auto& item : lights) {
CGraphics::LoadLight(idx, item);
idx++;
}
// Sets n LSB to 1
auto bits = static_cast<u8>((1 << lights.size()) + 255);
CGraphics::SetLightState(static_cast<ERglLightBits>(bits));
CGraphics::SetLightState(static_cast<ERglLight>((1 << lights.size()) + 255));
}
if (x298_31_disableWorldLights) {