A simple vertex shader that projects the vertex and returns the vertex in clip-space coordinates.
More...
#include <VertexShader.hpp>
|
template<typename VertexType , typename MatrixType > |
Eigen::Vector4< MatrixType > | operator() (const Eigen::Vector4< VertexType > &vertex, const Eigen::Matrix4< MatrixType > &model_view_matrix, const Eigen::Matrix4< MatrixType > &projection_matrix) |
| Projects the given vertex into clip-space and returns it.
|
|
A simple vertex shader that projects the vertex and returns the vertex in clip-space coordinates.
◆ operator()()
template<typename VertexType , typename MatrixType >
Eigen::Vector4< MatrixType > eos::render::VertexShader::operator() |
( |
const Eigen::Vector4< VertexType > & |
vertex, |
|
|
const Eigen::Matrix4< MatrixType > & |
model_view_matrix, |
|
|
const Eigen::Matrix4< MatrixType > & |
projection_matrix |
|
) |
| |
|
inline |
Projects the given vertex into clip-space and returns it.
- Parameters
-
[in] | vertex | The vertex to project. |
[in] | model_view_matrix | The model-view matrix. |
[in] | projection_matrix | The projection matrix. |
- Template Parameters
-
VertexType | Vertex type. |
MatrixType | Matrix type. |
- Returns
- Vertex projected to clip space.
The documentation for this class was generated from the following file: