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

Spot light source parameters. More...

#include <tinypbrt/detail/light.h>

Data Fields

tpbrt_spectrum_t i
 Spectral distribution of the light's emitted radiant intensity.
 
tpbrt_point_t from
 One of two points defining the lighting vector.
 
tpbrt_point_t to
 One of two points defining the lighting vector.
 
tpbrt_float_t cone_angle
 The angle that the spotlight's cone makes with its primary axis. For directions up to this angle from the main axis, the full radiant intensity given by "I" is emitted. After this angle and up to "coneangle" + "conedeltaangle", illumination falls off until it is zero.
 
tpbrt_float_t cone_delta_angle
 The angle at which the spotlight intensity begins to fall off at the edges.
 

Detailed Description

Spot light source parameters.

Field Documentation

◆ i

tpbrt_spectrum_t tpbrt_light_source_spot_params_t::i

Spectral distribution of the light's emitted radiant intensity.

Examples
examples/lights/main.c.

◆ from

tpbrt_point_t tpbrt_light_source_spot_params_t::from

One of two points defining the lighting vector.

Examples
examples/lights/main.c.

◆ to

tpbrt_point_t tpbrt_light_source_spot_params_t::to

One of two points defining the lighting vector.

Examples
examples/lights/main.c.

◆ cone_angle

tpbrt_float_t tpbrt_light_source_spot_params_t::cone_angle

The angle that the spotlight's cone makes with its primary axis. For directions up to this angle from the main axis, the full radiant intensity given by "I" is emitted. After this angle and up to "coneangle" + "conedeltaangle", illumination falls off until it is zero.

Examples
examples/lights/main.c.

◆ cone_delta_angle

tpbrt_float_t tpbrt_light_source_spot_params_t::cone_delta_angle

The angle at which the spotlight intensity begins to fall off at the edges.

Examples
examples/lights/main.c.

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