b3dLightRange

Sets light attenuation range in world units (point/spot lights only, directional unaffected). Takes light (light entity handle), range (attenuation distance in world units, typically 1.0-100.0). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

light Int
range Double

Returns

Void

Quick Summary

Sets light attenuation range in world units (point/spot lights only, directional unaffected). Takes light (light entity handle), range (attenuation distance in world units, typically 1.0-100.0). Returns nothing.

Technical Exegesis...

Sets light attenuation range in world units (point/spot lights only, directional unaffected). Takes light (light entity handle), range (attenuation distance in world units, typically 1.0-100.0). Returns nothing. Validates entity is ENTITY_LIGHT type, sets light->range=(float)range. Controls how far light reaches before fading to zero.

This function sets light range.

Example

Example.bam
; No example implemented yet