Skip to main content

Module point

Module point 

Source
Expand description

Point light can be represented as light bulb which hangs on wire - it is spherical light source which emits light in all directions. It has single parameter - radius at which intensity will be zero. Intensity of light will be calculated using inverse square root law.

§Light scattering

Point light support light scattering feature - it means that you’ll see light volume as well as lighted surfaces. Simple example from real life: light bulb in the fog. This effect significantly improves perception of light, but should be used carefully with sane values of light scattering, otherwise you’ll get bright glowing sphere instead of slightly visible light volume.

§Performance notes

Point lights supports shadows, but keep in mind - they’re very expensive and can easily ruin performance of your game, especially on low-end hardware. Light scattering is relatively heavy too.

Structs§

PointLight
See module docs.
PointLightBuilder
Allows you to build point light in declarative manner.