dxLightConeAngles(light%,inner_angle#,outer_angle#)

Parameters

light - light handle
inner_angle# - inner angle of cone
outer_angle# - outer angle of cone

Description

Sets the 'cone' angle for a 'spot' light.

The default light cone angles setting is 0,90.

See also: dxCreateLight, dxLightRange, dxLightColor.

Example

dxGraphics3D 640,480

camera = dxCreateCamera()
dxMoveEntity camera,0,0,-40

flat = dxCreatePlane(10)
dxTurnEntity flat,-90,0,0

lite = dxCreateLight(3) ; try different lights 1 to 3
dxMoveEntity lite,0,0,-15

While Not dxKeyDown(1)
dxRenderWorld:dxFlip
If dxKeyHit(57) Then ; press SPACEBAR to randomly change the 'cone' of light
dxLightConeAngles lite, dxRand(120),dxRand(120)
EndIf
Wend
End

Index