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

PBRT Spectrum representation. More...

#include <tinypbrt/detail/color.h>

Data Fields

union { 
 
   tpbrt_wavelength_array_t   wavelengths 
 Array of pairs (wavelength, value). More...
 
   tpbrt_rgb_t   rgb 
 RGB value. More...
 
   tpbrt_blackbody_t   blackbody 
 Blackbody temperature in Kelvins. More...
 
   tpbrt_string_t   file_name 
 Filename of file which contains wavelengths array. More...
 
   tpbrt_spectrum_builtin_t   builtin: 7 
 Builtin value. More...
 
   tpbrt_float_t   constant 
 Constant value. More...
 
} as 
 Value dependent on type value.
 
tpbrt_spectrum_type_t type: 4
 value type.
 

Detailed Description

PBRT Spectrum representation.

Examples
examples/lights/main.c.

Field Documentation

◆ wavelengths

tpbrt_wavelength_array_t tpbrt_spectrum_t::wavelengths

Array of pairs (wavelength, value).

◆ rgb

tpbrt_rgb_t tpbrt_spectrum_t::rgb

RGB value.

◆ blackbody

tpbrt_blackbody_t tpbrt_spectrum_t::blackbody

Blackbody temperature in Kelvins.

◆ file_name

tpbrt_string_t tpbrt_spectrum_t::file_name

Filename of file which contains wavelengths array.

◆ builtin

tpbrt_spectrum_builtin_t tpbrt_spectrum_t::builtin

Builtin value.

◆ constant

tpbrt_float_t tpbrt_spectrum_t::constant

Constant value.

◆ [union]

union { ... } tpbrt_spectrum_t::as

Value dependent on type value.

◆ type

tpbrt_spectrum_type_t tpbrt_spectrum_t::type

value type.


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