Remove PPDisplace provider.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@15029 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
vincentlj 2014-01-12 23:47:34 +00:00
parent 47d7f4fdd4
commit 1da42b81a6
4 changed files with 0 additions and 31 deletions

View File

@ -815,25 +815,6 @@ void DisplaceProvider::OnSetConstants(IMaterialRendererServices *srv, int)
//-------------------------------------
void PPDisplaceProvider::OnSetConstants(IMaterialRendererServices *srv, int)
{
int viz = irr_driver->getDistortViz();
srv->setPixelShaderConstant("viz", &viz, 1);
if (!firstdone)
{
int tex = 0;
srv->setPixelShaderConstant("tex", &tex, 1);
tex = 1;
srv->setPixelShaderConstant("dtex", &tex, 1);
firstdone = true;
}
}
//-------------------------------------
void FogProvider::OnSetConstants(IMaterialRendererServices *srv, int)
{
const Track * const track = World::getWorld()->getTrack();

View File

@ -693,14 +693,6 @@ private:
//
class PPDisplaceProvider: public CallBase
{
public:
virtual void OnSetConstants(video::IMaterialRendererServices *srv, int);
};
//
class FogProvider: public CallBase
{
public:

View File

@ -63,7 +63,6 @@ Shaders::Shaders()
m_callbacks[ES_SHADOWGEN] = new ShadowGenProvider();
m_callbacks[ES_CAUSTICS] = new CausticsProvider();
m_callbacks[ES_DISPLACE] = new DisplaceProvider();
m_callbacks[ES_PPDISPLACE] = new PPDisplaceProvider();
m_callbacks[ES_FOG] = new FogProvider();
for(s32 i=0 ; i < ES_COUNT ; i++)
@ -217,8 +216,6 @@ void Shaders::loadShaders()
m_shaders[ES_DISPLACE] = glsl(dir + "displace.vert", dir + "displace.frag",
m_callbacks[ES_DISPLACE]);
m_shaders[ES_PPDISPLACE] = glsl(std::string(""), dir + "ppdisplace.frag",
m_callbacks[ES_PPDISPLACE]);
m_shaders[ES_PASSFAR] = glsl(dir + "farplane.vert", dir + "colorize.frag",
m_callbacks[ES_COLORIZE]);

View File

@ -73,7 +73,6 @@ using namespace irr;
ACT(ES_SHADOWGEN) \
ACT(ES_CAUSTICS) \
ACT(ES_DISPLACE) \
ACT(ES_PPDISPLACE) \
ACT(ES_PASSFAR) \
ACT(ES_FOG)