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

Subsurface material parameters. More...

#include <tinypbrt/detail/material.h>

Data Fields

tpbrt_material_bump_map_params_t bump_map
 Bump map parameters.
 
tpbrt_texture_handle_t eta
 Index of refraction of the scattering volume. Note that wavelength-dependent indices of refraction are not supported in the current implementation.
 
tpbrt_texture_handle_t g
 Henyey-Greenstein asymmetry parameter, which ranges from -1 to 1, going from completely backwards-scattering to completely forward-scattering.
 
tpbrt_texture_handle_t mfp
 Mean free path of light in the volume, specified in meters. (Used only if "reflectance" is specified.)
 
tpbrt_material_subsurface_scattering_t scattering
 Scattering parameters.
 
tpbrt_texture_handle_t reflectance
 Average reflectance of the volume. If specified, absorption and scattering coefficients are computed from this value and the specified mean free path.
 
tpbrt_material_roughness_params_t roughness_params
 Roughness parameters.
 
tpbrt_float_t scale
 Scale factor that is applied to sigma_a and sigma_s. This is particularly useful when the scene is not measured in mm and the coefficients need to be scaled accordingly. For example, if the scene is modeled in meters, then a scale factor of 0.001 would be appropriate.
 

Detailed Description

Subsurface material parameters.

Field Documentation

◆ bump_map

tpbrt_material_bump_map_params_t tpbrt_material_subsurface_params_t::bump_map

Bump map parameters.

◆ eta

tpbrt_texture_handle_t tpbrt_material_subsurface_params_t::eta

Index of refraction of the scattering volume. Note that wavelength-dependent indices of refraction are not supported in the current implementation.

◆ g

tpbrt_texture_handle_t tpbrt_material_subsurface_params_t::g

Henyey-Greenstein asymmetry parameter, which ranges from -1 to 1, going from completely backwards-scattering to completely forward-scattering.

◆ mfp

tpbrt_texture_handle_t tpbrt_material_subsurface_params_t::mfp

Mean free path of light in the volume, specified in meters. (Used only if "reflectance" is specified.)

◆ scattering

tpbrt_material_subsurface_scattering_t tpbrt_material_subsurface_params_t::scattering

Scattering parameters.

◆ reflectance

tpbrt_texture_handle_t tpbrt_material_subsurface_params_t::reflectance

Average reflectance of the volume. If specified, absorption and scattering coefficients are computed from this value and the specified mean free path.

◆ roughness_params

tpbrt_material_roughness_params_t tpbrt_material_subsurface_params_t::roughness_params

Roughness parameters.

◆ scale

tpbrt_float_t tpbrt_material_subsurface_params_t::scale

Scale factor that is applied to sigma_a and sigma_s. This is particularly useful when the scene is not measured in mm and the coefficients need to be scaled accordingly. For example, if the scene is modeled in meters, then a scale factor of 0.001 would be appropriate.


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