Lighting is working way better and now for world generation work.
This commit is contained in:
parent
9c03e850b5
commit
194cc6664b
8 changed files with 57 additions and 63 deletions
22
lights.hpp
22
lights.hpp
|
@ -9,26 +9,12 @@
|
|||
namespace lighting {
|
||||
|
||||
struct LightSource {
|
||||
int strength = 0; // lower is better
|
||||
float radius = 1.0f; // higher is farther, in squares
|
||||
int strength = 0;
|
||||
float radius = 1.0f;
|
||||
};
|
||||
|
||||
const int MIN = 50;
|
||||
const int MAX = 170;
|
||||
const int MID = 130;
|
||||
|
||||
const std::array<int, 10> LEVELS{
|
||||
MAX,
|
||||
160,
|
||||
150,
|
||||
140,
|
||||
MID,
|
||||
120,
|
||||
110,
|
||||
90,
|
||||
70,
|
||||
MIN,
|
||||
};
|
||||
const int MIN = 35;
|
||||
const int MAX = 95;
|
||||
|
||||
class LightRender {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue