|
tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
|
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. | |
Material roughness parameters.
| 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.
| tpbrt_texture_handle_t tpbrt_material_roughness_params_t::u_roughness |
For surfaces with anisotropic roughness distributions, microfacet roughness in the u direction.
| tpbrt_texture_handle_t tpbrt_material_roughness_params_t::v_roughness |
For surfaces with anisotropic roughness distributions, microfacet roughness in the v direction.
| 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.