A constructor defined in BBMOD_PunctualLight.gml

Extends BBMOD_Light

new BBMOD_PunctualLight([_color[, _position[, _range]]])


Base struct for punctual lights.


Name Type Description
_color Struct.BBMOD_Color The light's color. Defaults to BBMOD_C_WHITE.
_position Struct.BBMOD_Vec3 The light's position. Defaults to (0, 0, 0).
_range Real The light's range. Defaults to 1.


Name Description
Color The color of the light. Default value is BBMOD_C_WHITE.
Range The range of the light.

Inherited properties

Name Description
AffectLightmaps If true then the light affects also materials with baked lightmaps. Defaults to true.
CastShadows If true then the light should casts shadows. This may not be implemented for all types of lights! Defaults to false.
Enabled Use false to disable the light. Defaults to true (the light is enabled).
Frameskip Number of frames to skip between individual updates of the light's shadowmap. Default value is 0, which means no frame skipping.
NeedsUpdate If true and the light is static, its shadowmap needs to be updated.
Position The position of the light.
RenderPass Bitwise OR of 1 << render pass in which the light is enabled. By default this is BBMOD_ERenderPass.Forward and BBMOD_ERenderPass.ReflectionCapture, which means the light is visible only in the forward render pass and during capture of reflection probes.
ShadowmapResolution The resolution of the shadowmap surface. Must be power of 2. Defaults to 512.
Static If true then the light's shadowmap is captured only once or when requested via setting the BBMOD_Light.NeedsUpdate property to true.

Child structs

BBMOD_PointLight, BBMOD_SpotLight

See also

bbmod_light_punctual_add, bbmod_light_punctual_clear, bbmod_light_punctual_count, bbmod_light_punctual_get, bbmod_light_punctual_remove, bbmod_light_punctual_remove_index

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on July 03, 2024 using GMDoc.