b3dLightSpotAngle

Sets spotlight cone angle (spot lights only, stored as-is, interpretation shader-dependent). Takes light (light entity handle), angleInCosine (angle value, parameter name suggests cosine but stored directly). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

light Int
angleInCosine Double

Returns

Void

Quick Summary

Sets spotlight cone angle (spot lights only, stored as-is, interpretation shader-dependent). Takes light (light entity handle), angleInCosine (angle value, parameter name suggests cosine but stored directly). Returns nothing.

Technical Exegesis...

Sets spotlight cone angle (spot lights only, stored as-is, interpretation shader-dependent). Takes light (light entity handle), angleInCosine (angle value, parameter name suggests cosine but stored directly). Returns nothing. Validates entity is ENTITY_LIGHT type, sets light->spotAngle=(float)angleInCosine. Controls cone width for LIGHT_SPOT (type=2) lights.

This function sets spot cone angle.

Example

Example.bam
; No example implemented yet