Host typegenerated
Sight2d
A viewer in a 2D scene: everything it cannot see in a straight line, past the edges of occluders, is dimmed when the scene's environment turns 2D lighting on. Lights are not changed; only what is out of sight.
3 members · engine 0.1.0
Sight2d.radius: numberHow far it sees, in world units, fading over the last quarter; 0 sees as far as there is.Sight2d.reach: numberHow far past an occluding edge it still sees, so the face of a wall it looks at is seen.Sight2d.unseen: numberWhat lit content out of sight is multiplied by, 0 to 1: 1 changes nothing and 0 is black.
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b