Exemplo n.º 1
0
//private. called when onet block is moved, built, or destroyed.
void World::ReEnlighten(
		const ushort i,
		const ushort j,
		const ushort k)
{

	unsigned char l= LightRadius(i, j, k);
	if( l > 0 )
		Shine( l );
	SunShine(i, j);
	emit UpdatedAround(i, j, k, l + 1);
}
Exemplo n.º 2
0
 float AverageAlbedo( Vector& N, Vector& V ) {
   return (ks().Luminance() * 2 * M_PI/(Shine() + 2));
 }