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

Planar texture mapping parameters. More...

#include <tinypbrt/detail/texture.h>

Data Fields

tpbrt_float_t u_delta
 An offset to be applied to the u texture coordinates. This offset is applied after any scaling from "uscale".
 
tpbrt_float_t v_delta
 An offset to be applied to the v texture coordinates. This offset is applied after any scaling from "vscale".
 
tpbrt_vec_t v1
 v1 is one of two vectors that define a planar mapping.
 
tpbrt_vec_t v2
 v2 is one of two vectors that define a planar mapping.
 

Detailed Description

Planar texture mapping parameters.

Note
Note that "uscale" and "vscale" are redundant for the "planar" mapping and are therefore not provided since their effect can be had by scaling the "v1" and "v2" vectors.

Field Documentation

◆ u_delta

tpbrt_float_t tpbrt_texture_mapping_planar_params_t::u_delta

An offset to be applied to the u texture coordinates. This offset is applied after any scaling from "uscale".

◆ v_delta

tpbrt_float_t tpbrt_texture_mapping_planar_params_t::v_delta

An offset to be applied to the v texture coordinates. This offset is applied after any scaling from "vscale".

◆ v1

tpbrt_vec_t tpbrt_texture_mapping_planar_params_t::v1

v1 is one of two vectors that define a planar mapping.

◆ v2

tpbrt_vec_t tpbrt_texture_mapping_planar_params_t::v2

v2 is one of two vectors that define a planar mapping.


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