mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Add API to control shadow intensity from the game/mod (#11944)
* Also Disable shadows when sun/moon is hidden. Fixes #11972.
This commit is contained in:
parent
8d55702d13
commit
0f25fa7af6
24 changed files with 375 additions and 169 deletions
|
@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "environment.h"
|
||||
#include "constants.h"
|
||||
#include "settings.h"
|
||||
#include "lighting.h"
|
||||
#include <list>
|
||||
|
||||
class Client;
|
||||
|
@ -158,6 +159,8 @@ public:
|
|||
added_velocity += vel;
|
||||
}
|
||||
|
||||
inline Lighting& getLighting() { return m_lighting; }
|
||||
|
||||
private:
|
||||
void accelerate(const v3f &target_speed, const f32 max_increase_H,
|
||||
const f32 max_increase_V, const bool use_pitch);
|
||||
|
@ -209,4 +212,5 @@ private:
|
|||
|
||||
GenericCAO *m_cao = nullptr;
|
||||
Client *m_client;
|
||||
Lighting m_lighting;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue