mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
Backlight for tranparent blocks
This commit is contained in:
parent
d2c87f4ba5
commit
b472626d8d
5 changed files with 25 additions and 14 deletions
|
|
@ -71,6 +71,10 @@ public:
|
|||
return map;
|
||||
}
|
||||
|
||||
static inline light_t combine(int r, int g, int b, int s) {
|
||||
return r | (g << 4) | (b << 8) | (s << 12);
|
||||
}
|
||||
|
||||
static inline light_t extract(light_t light, ubyte channel) {
|
||||
return (light >> (channel << 2)) & 0xF;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue