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

Uniform grid media parameters. More...

#include <tinypbrt/detail/media.h>

Data Fields

tpbrt_float_array_t density
 nx*ny*nz density values, in row-major order.
 
tpbrt_spectrum_t le
 Spectral distribution of the medium's emitted radiance.
 
tpbrt_point3_t p0
 Extent of the density grid in the medium's space: the coordinates of the lookup point are found with respect to these bounds before the density interpolant weights are computed.
 
tpbrt_float_t le_scale
 Scale factor applied to the medium's emitted radiance.
 
tpbrt_point3_t p1
 Extent of the density grid in the medium's space: the coordinates of the lookup point are found with respect to these bounds before the density interpolant weights are computed.
 
tpbrt_uint_t nx
 Grid size in x-coordinates.
 
tpbrt_uint_t ny
 Grid size in y-coordinates.
 
tpbrt_uint_t nz
 Grid size in z-coordinates.
 
tpbrt_media_scattering_t scattering
 Scattering value.
 
tpbrt_float_t scale
 Scale factor applied to the absorption and scattering cross sections.
 
tpbrt_float_t g
 The medium's Henyey-Greenstein phase function asymmetry parameter.
 
tpbrt_float_array_t temperature
 nx*ny*nz blackbody temperature values in kelvin, in row-major order. If specified, these are trilinearly interpolated and then converted to blackbody emission spectra to describe the medium's emission.
 
tpbrt_float_t temperature_offset
 Offset value that is added to the emission temperature, if present.
 
tpbrt_float_t temperature_scale
 Scale factor applied to the offset emission temperature to get a temperature in kelvin before the blackbody emission is determined.
 

Detailed Description

Uniform grid media parameters.

Field Documentation

◆ density

tpbrt_float_array_t tpbrt_media_uniform_grid_params_t::density

nx*ny*nz density values, in row-major order.

◆ le

tpbrt_spectrum_t tpbrt_media_uniform_grid_params_t::le

Spectral distribution of the medium's emitted radiance.

◆ p0

tpbrt_point3_t tpbrt_media_uniform_grid_params_t::p0

Extent of the density grid in the medium's space: the coordinates of the lookup point are found with respect to these bounds before the density interpolant weights are computed.

◆ le_scale

tpbrt_float_t tpbrt_media_uniform_grid_params_t::le_scale

Scale factor applied to the medium's emitted radiance.

◆ p1

tpbrt_point3_t tpbrt_media_uniform_grid_params_t::p1

Extent of the density grid in the medium's space: the coordinates of the lookup point are found with respect to these bounds before the density interpolant weights are computed.

◆ nx

tpbrt_uint_t tpbrt_media_uniform_grid_params_t::nx

Grid size in x-coordinates.

◆ ny

tpbrt_uint_t tpbrt_media_uniform_grid_params_t::ny

Grid size in y-coordinates.

◆ nz

tpbrt_uint_t tpbrt_media_uniform_grid_params_t::nz

Grid size in z-coordinates.

◆ scattering

tpbrt_media_scattering_t tpbrt_media_uniform_grid_params_t::scattering

Scattering value.

◆ scale

tpbrt_float_t tpbrt_media_uniform_grid_params_t::scale

Scale factor applied to the absorption and scattering cross sections.

◆ g

tpbrt_float_t tpbrt_media_uniform_grid_params_t::g

The medium's Henyey-Greenstein phase function asymmetry parameter.

◆ temperature

tpbrt_float_array_t tpbrt_media_uniform_grid_params_t::temperature

nx*ny*nz blackbody temperature values in kelvin, in row-major order. If specified, these are trilinearly interpolated and then converted to blackbody emission spectra to describe the medium's emission.

◆ temperature_offset

tpbrt_float_t tpbrt_media_uniform_grid_params_t::temperature_offset

Offset value that is added to the emission temperature, if present.

◆ temperature_scale

tpbrt_float_t tpbrt_media_uniform_grid_params_t::temperature_scale

Scale factor applied to the offset emission temperature to get a temperature in kelvin before the blackbody emission is determined.


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