tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
Loading...
Searching...
No Matches
tpbrt_light_source_t Struct Reference

PBRT light source representation. More...

#include <tinypbrt/detail/light.h>

Data Fields

tpbrt_transform_handle_t transform
 Transform handle.
 
tpbrt_float_t scale
 Scale factor that modulates the amount of light that the light source emits into the scene.
 
tpbrt_opt_float_t power_illuminance
 Total luminous power or illuminance emitted by the light.
 
tpbrt_media_handle_t interior_media_handle
 Interior media handle.
 
tpbrt_media_handle_t exterior_media_handle
 Exterior media handle.
 
union { 
 
   tpbrt_light_source_distant_params_t   distant 
 Distant light source parameters. More...
 
   tpbrt_light_source_goniometric_params_t   goniometric 
 Goniometric light source parameters. More...
 
   tpbrt_light_source_infinite_params_t   infinite 
 Infinite light source parameters. More...
 
   tpbrt_light_source_point_params_t   point 
 Point light source parameters. More...
 
   tpbrt_light_source_projection_params_t   projection 
 Projection light source parameters. More...
 
   tpbrt_light_source_spot_params_t   spot 
 Spot light source parameters. More...
 
} as 
 Value dependent on type value.
 
tpbrt_light_source_type_t type: 4
 Light value type.
 

Detailed Description

PBRT light source representation.

Examples
examples/lights/main.c.

Field Documentation

◆ transform

tpbrt_transform_handle_t tpbrt_light_source_t::transform

Transform handle.

Examples
examples/lights/main.c.

◆ scale

tpbrt_float_t tpbrt_light_source_t::scale

Scale factor that modulates the amount of light that the light source emits into the scene.

Examples
examples/lights/main.c.

◆ power_illuminance

tpbrt_opt_float_t tpbrt_light_source_t::power_illuminance

Total luminous power or illuminance emitted by the light.

Examples
examples/lights/main.c.

◆ interior_media_handle

tpbrt_media_handle_t tpbrt_light_source_t::interior_media_handle

Interior media handle.

◆ exterior_media_handle

tpbrt_media_handle_t tpbrt_light_source_t::exterior_media_handle

Exterior media handle.

◆ distant

tpbrt_light_source_distant_params_t tpbrt_light_source_t::distant

Distant light source parameters.

Examples
examples/lights/main.c.

◆ goniometric

tpbrt_light_source_goniometric_params_t tpbrt_light_source_t::goniometric

Goniometric light source parameters.

Examples
examples/lights/main.c.

◆ infinite

tpbrt_light_source_infinite_params_t tpbrt_light_source_t::infinite

Infinite light source parameters.

Examples
examples/lights/main.c.

◆ point

tpbrt_light_source_point_params_t tpbrt_light_source_t::point

Point light source parameters.

Examples
examples/lights/main.c.

◆ projection

tpbrt_light_source_projection_params_t tpbrt_light_source_t::projection

Projection light source parameters.

Examples
examples/lights/main.c.

◆ spot

tpbrt_light_source_spot_params_t tpbrt_light_source_t::spot

Spot light source parameters.

Examples
examples/lights/main.c.

◆ [union]

union { ... } tpbrt_light_source_t::as

Value dependent on type value.

Examples
examples/lights/main.c.

◆ type

tpbrt_light_source_type_t tpbrt_light_source_t::type

Light value type.

Examples
examples/lights/main.c.

The documentation for this struct was generated from the following file: