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

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.
 

Detailed Description

A fragment shader that textures.

Member Function Documentation

◆ shade_triangle_pixel()

template<typename T >
Eigen::Vector4< T > eos::render::TexturingFragmentShader::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.

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.

Parameters
[in]xX.
Returns
RGBA colour in the range [0, 1].

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