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

Material roughness parameters. More...

#include <tinypbrt/detail/material.h>

Data Fields

tpbrt_texture_handle_t roughness
 Overall surface roughness, modeled using the Trowbridge-Reitz (GGX) microfacet distribution. If zero, the surface is perfectly smooth and perfect specular reflection (and possibly transmission) occurs. Larger values correspond to greater roughness.
 
tpbrt_texture_handle_t u_roughness
 For surfaces with anisotropic roughness distributions, microfacet roughness in the u direction.
 
tpbrt_texture_handle_t v_roughness
 For surfaces with anisotropic roughness distributions, microfacet roughness in the v direction.
 
tpbrt_bool_t remap_roughness: 1
 If true, roughness values are expected to be between 0 and 1, and are remapped to microfacet distribution function parameter values that range from near-perfect-specular at 0 to very rough at 1. Otherwise the roughness parameters are used directly for the alpha parameter of the Trowbridge-Reitz microfacet distribution function. Using this remapping gives a more intuitive control of roughness than specifying alpha.
 

Detailed Description

Material roughness parameters.

Examples
examples/materials/main.c.

Field Documentation

◆ roughness

tpbrt_texture_handle_t tpbrt_material_roughness_params_t::roughness

Overall surface roughness, modeled using the Trowbridge-Reitz (GGX) microfacet distribution. If zero, the surface is perfectly smooth and perfect specular reflection (and possibly transmission) occurs. Larger values correspond to greater roughness.

◆ u_roughness

tpbrt_texture_handle_t tpbrt_material_roughness_params_t::u_roughness

For surfaces with anisotropic roughness distributions, microfacet roughness in the u direction.

Examples
examples/materials/main.c.

◆ v_roughness

tpbrt_texture_handle_t tpbrt_material_roughness_params_t::v_roughness

For surfaces with anisotropic roughness distributions, microfacet roughness in the v direction.

Examples
examples/materials/main.c.

◆ remap_roughness

tpbrt_bool_t tpbrt_material_roughness_params_t::remap_roughness

If true, roughness values are expected to be between 0 and 1, and are remapped to microfacet distribution function parameter values that range from near-perfect-specular at 0 to very rough at 1. Otherwise the roughness parameters are used directly for the alpha parameter of the Trowbridge-Reitz microfacet distribution function. Using this remapping gives a more intuitive control of roughness than specifying alpha.

Examples
examples/materials/main.c.

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