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_diffuse_params_t Struct Reference

Diffuse area light parameters. More...

#include <tinypbrt/detail/light.h>

Data Fields

tpbrt_string_t file_name
 Filename for an image that describes spatially-varying emission over the surface of the emitter. The emitting shape's default (u,v) parameterization is used to map the image to the surface.
 
tpbrt_spectrum_t l
 Spectral distribution of the light's emitted radiance.
 
tpbrt_bool_t two_sided: 1
 Determines whether the light source emits light from just the side of the surface where the surface normal points or both sides.
 

Detailed Description

Diffuse area light parameters.

Field Documentation

◆ file_name

tpbrt_string_t tpbrt_area_light_diffuse_params_t::file_name

Filename for an image that describes spatially-varying emission over the surface of the emitter. The emitting shape's default (u,v) parameterization is used to map the image to the surface.

◆ l

tpbrt_spectrum_t tpbrt_area_light_diffuse_params_t::l

Spectral distribution of the light's emitted radiance.

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

◆ two_sided

tpbrt_bool_t tpbrt_area_light_diffuse_params_t::two_sided

Determines whether the light source emits light from just the side of the surface where the surface normal points or both sides.

Examples
examples/lights/main.c.

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