#include <GteTexture2Effect.h>
Definition at line 17 of file GteTexture2Effect.h.
Texture2Effect::Texture2Effect |
( |
std::shared_ptr< ProgramFactory > const & |
factory, |
|
|
std::shared_ptr< Texture2 > const & |
texture, |
|
|
SamplerState::Filter |
filter, |
|
|
SamplerState::Mode |
mode0, |
|
|
SamplerState::Mode |
mode1 |
|
) |
| |
Matrix4x4< float > const & gte::Texture2Effect::GetPVWMatrix |
( |
| ) |
const |
|
inline |
std::shared_ptr< ConstantBuffer > const & gte::Texture2Effect::GetPVWMatrixConstant |
( |
| ) |
const |
|
inline |
std::shared_ptr< SamplerState > const & gte::Texture2Effect::GetSampler |
( |
| ) |
const |
|
inline |
std::shared_ptr< Texture2 > const & gte::Texture2Effect::GetTexture |
( |
| ) |
const |
|
inline |
void gte::Texture2Effect::SetPVWMatrix |
( |
Matrix4x4< float > const & |
pvwMatrix | ) |
|
|
inline |
void Texture2Effect::SetPVWMatrixConstant |
( |
std::shared_ptr< ConstantBuffer > const & |
pvwMatrix | ) |
|
Matrix4x4<float>* gte::Texture2Effect::mPVWMatrix |
|
private |
std::shared_ptr<ConstantBuffer> gte::Texture2Effect::mPVWMatrixConstant |
|
private |
Initial value:=
"uniform sampler2D baseSampler;\n"
"\n"
"layout(location = 0) in vec2 vertexTCoord;\n"
"layout(location = 0) out vec4 pixelColor;\n"
"\n"
"void main()\n"
"{\n"
" pixelColor = texture(baseSampler, vertexTCoord);\n"
"}\n"
Definition at line 49 of file GteTexture2Effect.h.
Initial value:=
"uniform PVWMatrix\n"
"{\n"
" mat4 pvwMatrix;\n"
"};\n"
"\n"
"layout(location = 0) in vec3 modelPosition;\n"
"layout(location = 1) in vec2 modelTCoord;\n"
"layout(location = 0) out vec2 vertexTCoord;\n"
"\n"
"void main()\n"
"{\n"
" vertexTCoord = modelTCoord;\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 48 of file GteTexture2Effect.h.
std::shared_ptr<Texture2> gte::Texture2Effect::mTexture |
|
private |
The documentation for this class was generated from the following files: