formZ SDK | 5.0 API Reference | Project | Modeling | Lights Manager

# fz_lite_dist_get_sun

Description

Returns the sun data for a given light. Note, that in the interface only distant lights give access to the sun. However, this function can be called for every light type, as sun data is actually stored with each light, even if its not a distant light.

Plugin Prototype

fzrt_error_td fz_lite_dist_get_sun(

fzrt_int | windex,
fz_lite_ptr | lite,
fz_lite_sun_ptr * | sun_ptr )

Parameters

windex [Input]

project window index

lite [Input]

light

sun_ptr [Result]

sun

Returns

Error codes

Availability

7.0.0.0

Example Files

util_lights.fsl

Function Set

fz_lite_fset

Defined in

fz_lite_api.h