Fix M2 interior lighting and carpet sliding

- M2 interior darkening now uses global player-inside-WMO flag instead
  of per-instance queries that were unreliable
- Fix carpet/rug sliding by skipping lateral collision push when player
  is standing on top of any stepable low object, not just platforms
This commit is contained in:
Kelsi 2026-02-07 17:05:30 -08:00
parent 84c3d1bf32
commit 2d2b9cc1fc
4 changed files with 10 additions and 17 deletions

View file

@ -22,7 +22,6 @@ namespace rendering {
class Shader;
class Camera;
class WMORenderer;
/**
* GPU representation of an M2 model
@ -277,10 +276,10 @@ public:
}
void clearShadowMap() { shadowEnabled = false; }
void setWMORenderer(WMORenderer* wmo) { wmoRenderer = wmo; }
void setInsideInterior(bool inside) { insideInterior = inside; }
private:
WMORenderer* wmoRenderer = nullptr;
bool insideInterior = false;
pipeline::AssetManager* assetManager = nullptr;
std::unique_ptr<Shader> shader;