Circle adjusted to work better but now I think hirdrac was right that it's easier to just calculate a distance from center and use that to determine light levels rather than a whole dpath.
This commit is contained in:
parent
8a94108874
commit
9ac8da30ea
7 changed files with 23 additions and 22 deletions
|
@ -10,7 +10,7 @@ namespace lighting {
|
|||
|
||||
struct LightSource {
|
||||
int strength = 0; // lower is better
|
||||
int distance = 1; // higher is farther, in squares
|
||||
float radius = 1.0f; // higher is farther, in squares
|
||||
};
|
||||
|
||||
const int MIN = 50;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue