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 Struct Reference

C++ wrapper for tpbrt_texture_mapping_planar_params_t. More...

#include <tinypbrt/detail/cpp/texture.hpp>

Public Member Functions

constexpr float_t u_delta () const noexcept
 Returns u_delta value.
 
constexpr float_t v_delta () const noexcept
 Returns v_delta value.
 
constexpr vec v1 () const noexcept
 Returns v1 value.
 
constexpr vec v2 () const noexcept
 Returns v2 value.
 
constexpr auto reflect () const noexcept
 Conversion to tuple.
 

Detailed Description

C++ wrapper for tpbrt_texture_mapping_planar_params_t.

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.

Member Function Documentation

◆ u_delta()

constexpr float_t tpbrt::texture_mapping_planar_params::u_delta ( ) const
inlineconstexprnoexcept

Returns u_delta value.

◆ v_delta()

constexpr float_t tpbrt::texture_mapping_planar_params::v_delta ( ) const
inlineconstexprnoexcept

Returns v_delta value.

◆ v1()

constexpr vec tpbrt::texture_mapping_planar_params::v1 ( ) const
inlineconstexprnoexcept

Returns v1 value.

◆ v2()

constexpr vec tpbrt::texture_mapping_planar_params::v2 ( ) const
inlineconstexprnoexcept

Returns v2 value.

◆ reflect()

constexpr auto tpbrt::texture_mapping_planar_params::reflect ( ) const
inlineconstexprnoexcept

Conversion to tuple.


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