eos 1.4.0
|
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. | |
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).
|
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?
[in] | X | X. |