QcChunkLight Struct
Block light levels (0..15) of one chunk as immutable section snapshots; a missing section is dark. More...
| Header: | #include <clientcore/light/QcChunkLight.h> |
Public Types
Public Functions
| int | level(int x, int y, int z) const |
Public Variables
| std::array<std::shared_ptr<const QcChunkLight::Section>, QcWorld::sectionCount> | sections |
Detailed Description
QcBlockLightEngine produces them (from the shared QcLightEngine), the mesher and the entity lighting read them.
Member Type Documentation
[alias] QcChunkLight::Section
Light levels of one section, immutable once published.
Member Function Documentation
int QcChunkLight::level(int x, int y, int z) const
Returns the level of the cell at local x and z in [0, 16) and height y; outside the world dark.
Member Variable Documentation
std::array<std::shared_ptr<const QcChunkLight::Section>, QcWorld::sectionCount> QcChunkLight::sections
Sections from the bottom up; null where the section is dark.