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

Mix material parameters. More...

#include <tinypbrt/detail/material.h>

Data Fields

tpbrt_material_handle_t materials [2]
 Handles of two materials to mix between.
 
tpbrt_texture_handle_t amount
 Weighting factor for the blend between materials. A value of zero corresponds to just the first material, a value of one corresponds to just the second, and values in between interpolate linearly.
 

Detailed Description

Mix material parameters.

Field Documentation

◆ materials

tpbrt_material_handle_t tpbrt_material_mix_params_t::materials[2]

Handles of two materials to mix between.

Examples
examples/materials/main.c.

◆ amount

tpbrt_texture_handle_t tpbrt_material_mix_params_t::amount

Weighting factor for the blend between materials. A value of zero corresponds to just the first material, a value of one corresponds to just the second, and values in between interpolate linearly.


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