eos 1.4.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
eos::render::ExtractionFragmentShader Class Reference

A fragment shader that is used to extract, or remap, texture from an image to a UV map (i.e. the reverse process of texturing). More...

#include <FragmentShader.hpp>

Public Member Functions

template<typename T >
Eigen::Vector4< T > shade_triangle_pixel (int x, int y, const detail::Vertex< T > &point_a, const detail::Vertex< T > &point_b, const detail::Vertex< T > &point_c, const Eigen::Vector3< T > &lambda, const cpp17::optional< Texture > &texture, float dudx, float dudy, float dvdx, float dvdy)
 Todo.
 

Detailed Description

A fragment shader that is used to extract, or remap, texture from an image to a UV map (i.e. the reverse process of texturing).

Member Function Documentation

◆ shade_triangle_pixel()

template<typename T >
Eigen::Vector4< T > eos::render::ExtractionFragmentShader::shade_triangle_pixel ( int  x,
int  y,
const detail::Vertex< T > &  point_a,
const detail::Vertex< T > &  point_b,
const detail::Vertex< T > &  point_c,
const Eigen::Vector3< T > &  lambda,
const cpp17::optional< Texture > &  texture,
float  dudx,
float  dudy,
float  dvdx,
float  dvdy 
)
inline

Todo.

Todo. Inverts the perspective texture mapping. Can be derived using some tedious algebra. NOTE: This one actually takes/needs the perspectively corrected lambda I think!

Todo: Probably move to a texturing file, internal/detail one, where we will also put the tex2d, mipmapping etc stuff?

Parameters
[in]XX.
Returns
X.

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