b3dLightColor

Sets light color (0-255 RGB, multiplied with surface color and intensity). Takes light (light entity handle), r/g/b (red/green/blue 0-255). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

light Int
r Int
g Int
b Int

Returns

Void

Quick Summary

Sets light color (0-255 RGB, multiplied with surface color and intensity). Takes light (light entity handle), r/g/b (red/green/blue 0-255). Returns nothing.

Technical Exegesis...

Sets light color (0-255 RGB, multiplied with surface color and intensity). Takes light (light entity handle), r/g/b (red/green/blue 0-255). Returns nothing. Validates entity is ENTITY_LIGHT type, converts RGB from 0-255 to 0.0-1.0 floats, sets light->color=(r/255, g/255, b/255). Light color tints illuminated surfaces.

This function sets light color. Color conversion: RGB values 0-255 converted to 0.0-1.0 floats (standard shader format).

Example

Example.bam
; No example implemented yet