#include <GteVertexColorEffect.h>
Definition at line 16 of file GteVertexColorEffect.h.
VertexColorEffect::VertexColorEffect |
( |
std::shared_ptr< ProgramFactory > const & |
factory | ) |
|
Matrix4x4< float > const & gte::VertexColorEffect::GetPVWMatrix |
( |
| ) |
const |
|
inline |
std::shared_ptr< ConstantBuffer > const & gte::VertexColorEffect::GetPVWMatrixConstant |
( |
| ) |
const |
|
inline |
void gte::VertexColorEffect::SetPVWMatrix |
( |
Matrix4x4< float > const & |
pvwMatrix | ) |
|
|
inline |
void VertexColorEffect::SetPVWMatrixConstant |
( |
std::shared_ptr< ConstantBuffer > const & |
pvwMatrix | ) |
|
Matrix4x4<float>* gte::VertexColorEffect::mPVWMatrix |
|
private |
std::shared_ptr<ConstantBuffer> gte::VertexColorEffect::mPVWMatrixConstant |
|
private |
Initial value:=
"layout(location = 0) in vec4 vertexColor;\n"
"layout(location = 0) out vec4 pixelColor;\n"
"\n"
"void main()\n"
"{\n"
" pixelColor = vertexColor;\n"
"}\n"
Definition at line 40 of file GteVertexColorEffect.h.
Initial value:=
"uniform PVWMatrix\n"
"{\n"
" mat4 pvwMatrix;\n"
"};\n"
"\n"
"layout(location = 0) in vec3 modelPosition;\n"
"layout(location = 1) in vec4 modelColor;\n"
"layout(location = 0) out vec4 vertexColor;\n"
"\n"
"void main()\n"
"{\n"
" vertexColor = modelColor;\n"
"#if GTE_USE_MAT_VEC\n"
" gl_Position = pvwMatrix * vec4(modelPosition, 1.0f);\n"
"#else\n"
" gl_Position = vec4(modelPosition, 1.0f) * pvwMatrix;\n"
"#endif\n"
"}\n"
Definition at line 39 of file GteVertexColorEffect.h.
The documentation for this class was generated from the following files: