eos 1.4.0
|
A fragment shader that textures. 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 textures.
|
inline |
Todo.
See comments above about lambda (persp. corrected?).
This shader reads the colour value from the given texture
. The returned colour will be in the range [0, 1]. Note/Todo: Can colour values be <0 and >1? If so, we should document and tell the user to perhaps clamp the values.
[in] | x | X. |