freg
0.3
Free-Roaming Elementary Game
|
This file provides simple (also mad) lighting for freg. More...
Go to the source code of this file.
Variables | |
const int | FIRE_LIGHT_FACTOR = 4 |
This file provides simple (also mad) lighting for freg.
It has light inertia, meaning that block, enlightened by outer source, will remain enlightened when light source is removed. Light is divided to sunlight and other light. Sunlight is changing over the day.
This lighting can be used to develop more intelligent one. Intended to be fast (and is!).
LightMap is uchar: & 0xF0 bits are for non-sun light, & 0x0F bits for sun.
Definition in file Lighting-inertia.cpp.
const int FIRE_LIGHT_FACTOR = 4 |
Definition at line 40 of file Lighting-inertia.cpp.