eos 1.4.0
|
A simple fragment shader that does vertex-colouring. 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 simple fragment shader that does vertex-colouring.
Uses the vertex colour data to shade the given fragment / pixel location.
|
inline |
Todo.
Todo. lambda is not perspectively corrected. Note: In our case, it is, as we do it in the raster loop at the moment? The given colour values should be in the range [0, 1]. The returned colour will also 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. |