IlluminationLogic

io.github.srs.model.illumination.IlluminationLogic

Illumination and light field computation engine for grid-based environments.

The computational pipeline is as follows:

  • Build an occlusion grid from static and (optionally) dynamic entities.
  • For each light source, compute its individual contribution using a Field-of-View (FOV) engine.
  • Combine all individual light contributions into a final LightField by summing them with saturation (capping at 1.0).

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def computeLightField(scale: ScaleFactor)(fov: FovEngine)(includeDynamic: Boolean)(env: Environment): LightField

Computes the complete light field for a given environment.

Computes the complete light field for a given environment.

Value parameters

env

The environment containing lights and entities.

fov

The Field-of-View engine used for light propagation simulation.

includeDynamic

A boolean flag to determine whether dynamic entities should be included in the occlusion map.

scale

The scale factor determining the grid's resolution.

Attributes

Returns

A LightField representing the final intensity value for each cell in the grid.