mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Dynamic sky, fog and cloud colors; sun and moon
This commit is contained in:
parent
58bed83d03
commit
2e90ed07ac
30 changed files with 1132 additions and 244 deletions
|
@ -30,7 +30,6 @@ public:
|
|||
scene::ISceneNode* parent,
|
||||
scene::ISceneManager* mgr,
|
||||
s32 id,
|
||||
float cloud_y,
|
||||
u32 seed
|
||||
);
|
||||
|
||||
|
@ -65,13 +64,14 @@ public:
|
|||
|
||||
void step(float dtime);
|
||||
|
||||
void update(v2f camera_p, float brightness);
|
||||
void update(v2f camera_p, video::SColorf color);
|
||||
|
||||
private:
|
||||
video::SMaterial m_material;
|
||||
core::aabbox3d<f32> m_box;
|
||||
float m_cloud_y;
|
||||
float m_brightness;
|
||||
video::SColorf m_color;
|
||||
u32 m_seed;
|
||||
v2f m_camera_pos;
|
||||
float m_time;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue