mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: integrate lightning system for storm weather and heavy rain
The lightning system (lightning.hpp/cpp) was fully implemented but never wired into the renderer. Connect it now: - Enable lightning during server storm weather (wType==3, intensity>0.1) and heavy rain (wType==1, intensity>0.7) as a bonus visual - Scale lightning intensity proportionally to weather intensity - Render in both parallel (SEC_POST) and fallback rendering paths - Update and shutdown alongside the weather system - Show active lightning info in the performance HUD weather section
This commit is contained in:
parent
d58c2f4269
commit
727dfa5c6c
3 changed files with 40 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ class StarField;
|
|||
class Clouds;
|
||||
class LensFlare;
|
||||
class Weather;
|
||||
class Lightning;
|
||||
class LightingManager;
|
||||
class SwimEffects;
|
||||
class MountDust;
|
||||
|
|
@ -127,6 +128,7 @@ public:
|
|||
Clouds* getClouds() const { return skySystem ? skySystem->getClouds() : nullptr; }
|
||||
LensFlare* getLensFlare() const { return skySystem ? skySystem->getLensFlare() : nullptr; }
|
||||
Weather* getWeather() const { return weather.get(); }
|
||||
Lightning* getLightning() const { return lightning.get(); }
|
||||
CharacterRenderer* getCharacterRenderer() const { return characterRenderer.get(); }
|
||||
WMORenderer* getWMORenderer() const { return wmoRenderer.get(); }
|
||||
M2Renderer* getM2Renderer() const { return m2Renderer.get(); }
|
||||
|
|
@ -216,6 +218,7 @@ private:
|
|||
std::unique_ptr<Clouds> clouds;
|
||||
std::unique_ptr<LensFlare> lensFlare;
|
||||
std::unique_ptr<Weather> weather;
|
||||
std::unique_ptr<Lightning> lightning;
|
||||
std::unique_ptr<LightingManager> lightingManager;
|
||||
std::unique_ptr<SkySystem> skySystem; // Coordinator for sky rendering
|
||||
std::unique_ptr<SwimEffects> swimEffects;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue