18 int i = factory->GetAPI();
48 "uniform ConstantColor\n" 50 " vec4 constantColor;\n" 53 "layout(location = 0) in vec3 modelPosition;\n" 55 "layout(location = 0) out vec4 vertexColor;\n" 59 "#if GTE_USE_MAT_VEC\n" 60 " gl_Position = pvwMatrix * vec4(modelPosition, 1.0f);\n" 62 " gl_Position = vec4(modelPosition, 1.0f) * pvwMatrix;\n" 64 " vertexColor = constantColor;\n" 68 "layout(location = 0) in vec4 vertexColor;\n" 70 "layout(location = 0) out vec4 pixelColor0;\n" 74 " pixelColor0 = vertexColor;\n" 80 " float4x4 pvwMatrix;\n" 83 "cbuffer ConstantColor\n" 85 " float4 constantColor;\n" 90 " float3 modelPosition : POSITION;\n" 95 " float4 vertexColor : COLOR0;\n" 96 " float4 clipPosition : SV_POSITION;\n" 99 "VS_OUTPUT VSMain(VS_INPUT input)\n" 101 " VS_OUTPUT output;\n" 102 "#if GTE_USE_MAT_VEC\n" 103 " output.clipPosition = mul(pvwMatrix, float4(input.modelPosition, 1.0f));\n" 105 " output.clipPosition = mul(float4(input.modelPosition, 1.0f), pvwMatrix);\n" 107 " output.vertexColor = constantColor;\n" 113 " float4 vertexColor : COLOR0;\n" 118 " float4 pixelColor0 : SV_TARGET0;\n" 121 "PS_OUTPUT PSMain(PS_INPUT input)\n" 123 " PS_OUTPUT output;\n" 124 " output.pixelColor0 = input.vertexColor;\n"
static std::string const msGLSLVSSource
std::shared_ptr< ConstantBuffer > mPVWMatrixConstant
Matrix4x4< float > * mPVWMatrix
void SetPVWMatrixConstant(std::shared_ptr< ConstantBuffer > const &pvwMatrix)
static std::string const * msVSSource[ProgramFactory::PF_NUM_API]
std::shared_ptr< ConstantBuffer > mColorConstant
GLsizei const GLchar *const * string
ConstantColorEffect(std::shared_ptr< ProgramFactory > const &factory, Vector4< float > const &color)
static std::string const msGLSLPSSource
Vector4< float > * mColor
static std::string const * msPSSource[ProgramFactory::PF_NUM_API]
std::shared_ptr< VisualProgram > mProgram
static std::string const msHLSLSource