11.15
This commit is contained in:
@@ -9,12 +9,7 @@ class TestShaderInterface : public davinci::ShaderFileInterface
|
||||
public:
|
||||
virtual davinci::VertexShaderInterface* getVertexShader(const char* szName)
|
||||
{
|
||||
if (strcmp(szName, "standard") == 0)
|
||||
{
|
||||
static StandardVertexShader standardVertexShader;
|
||||
return &standardVertexShader;
|
||||
}
|
||||
else if (strcmp(szName, "test") == 0)
|
||||
if (strcmp(szName, "test") == 0)
|
||||
{
|
||||
static TestVertexShader testVertexShader;
|
||||
return &testVertexShader;
|
||||
@@ -23,13 +18,8 @@ public:
|
||||
}
|
||||
virtual davinci::PixelShaderInterface* getPixelShader(const char* szName)
|
||||
{
|
||||
static SolidColorPixelShader solidColorPixelShader;
|
||||
static TestPixelShader testPixelShader;
|
||||
if(strcmp(szName, solidColorPixelShader.getName()) == 0)
|
||||
{
|
||||
return &solidColorPixelShader;
|
||||
}
|
||||
else if (strcmp(szName, testPixelShader.getName()) == 0)
|
||||
if (strcmp(szName, testPixelShader.getName()) == 0)
|
||||
{
|
||||
return &testPixelShader;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user