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

PBRT area light representation. More...

#include <tinypbrt/detail/light.h>

Data Fields

tpbrt_area_light_idx_t idx
 Area light index.
 
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
 Total luminous power or illuminance emitted by the light.
 
union { 
 
   tpbrt_area_light_diffuse_params_t   diffuse 
 Diffuse area light parameters. More...
 
} as 
 Value dependent on type value.
 
tpbrt_area_light_type_t type: 2
 Area light value type.
 

Detailed Description

PBRT area light representation.

Examples
examples/lights/main.c, and examples/materials/main.c.

Field Documentation

◆ idx

tpbrt_area_light_idx_t tpbrt_area_light_t::idx

Area light index.

◆ scale

tpbrt_float_t tpbrt_area_light_t::scale

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

Examples
examples/lights/main.c, and examples/materials/main.c.

◆ power

tpbrt_opt_float_t tpbrt_area_light_t::power

Total luminous power or illuminance emitted by the light.

Examples
examples/lights/main.c.

◆ diffuse

tpbrt_area_light_diffuse_params_t tpbrt_area_light_t::diffuse

Diffuse area light parameters.

Examples
examples/lights/main.c, and examples/materials/main.c.

◆ [union]

union { ... } tpbrt_area_light_t::as

Value dependent on type value.

Examples
examples/lights/main.c, and examples/materials/main.c.

◆ type

tpbrt_area_light_type_t tpbrt_area_light_t::type

Area light value type.


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