freg  0.3
Free-Roaming Elementary Game
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Variables
Lighting-inertia.cpp File Reference

This file provides simple (also mad) lighting for freg. More...

#include "World.h"
#include "Shred.h"
#include "blocks/Block.h"
#include "blocks/Active.h"
Include dependency graph for Lighting-inertia.cpp:

Go to the source code of this file.

Variables

const int FIRE_LIGHT_FACTOR = 4
 

Detailed Description

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.

Variable Documentation

const int FIRE_LIGHT_FACTOR = 4

Definition at line 40 of file Lighting-inertia.cpp.