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

A simple vertex shader that projects the vertex and returns the vertex in clip-space coordinates. More...

#include <VertexShader.hpp>

Public Member Functions

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.
 

Detailed Description

A simple vertex shader that projects the vertex and returns the vertex in clip-space coordinates.

Member Function Documentation

◆ 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]vertexThe vertex to project.
[in]model_view_matrixThe model-view matrix.
[in]projection_matrixThe projection matrix.
Template Parameters
VertexTypeVertex type.
MatrixTypeMatrix type.
Returns
Vertex projected to clip space.

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