Clean color_level shader providers.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@15032 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
164f1dda11
commit
468d5458bc
@ -153,26 +153,6 @@ void GrassShaderProvider::OnSetConstants(IMaterialRendererServices *srv, int use
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------------
|
||||
|
||||
void ColorLevelsProvider::OnSetConstants(IMaterialRendererServices *srv, int userData)
|
||||
{
|
||||
|
||||
m_inlevel = World::getWorld()->getTrack()->getColorLevelIn();
|
||||
m_outlevel = World::getWorld()->getTrack()->getColorLevelOut();
|
||||
|
||||
srv->setVertexShaderConstant("inlevel", &m_inlevel.X, 3);
|
||||
srv->setVertexShaderConstant("outlevel", &m_outlevel.X, 2);
|
||||
|
||||
if (!firstdone)
|
||||
{
|
||||
s32 tex = 0;
|
||||
srv->setVertexShaderConstant("tex", &tex, 1);
|
||||
|
||||
firstdone = true;
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------------
|
||||
void SkyboxProvider::OnSetConstants(IMaterialRendererServices *srv, int)
|
||||
{
|
||||
|
@ -139,23 +139,6 @@ private:
|
||||
|
||||
//
|
||||
|
||||
class ColorLevelsProvider: public CallBase
|
||||
{
|
||||
public:
|
||||
virtual void OnSetConstants(video::IMaterialRendererServices *srv, int);
|
||||
|
||||
|
||||
ColorLevelsProvider()
|
||||
{
|
||||
}
|
||||
|
||||
private:
|
||||
core::vector3df m_inlevel;
|
||||
core::vector2df m_outlevel;
|
||||
};
|
||||
|
||||
//
|
||||
|
||||
class SkyboxProvider: public CallBase
|
||||
{
|
||||
public:
|
||||
|
@ -38,7 +38,6 @@ Shaders::Shaders()
|
||||
m_callbacks[ES_SPLATTING] = new SplattingProvider();
|
||||
m_callbacks[ES_WATER] = new WaterShaderProvider();
|
||||
m_callbacks[ES_GRASS] = new GrassShaderProvider();
|
||||
m_callbacks[ES_COLOR_LEVELS] = new ColorLevelsProvider();
|
||||
m_callbacks[ES_BUBBLES] = new BubbleEffectProvider();
|
||||
m_callbacks[ES_RAIN] = new RainEffectProvider();
|
||||
m_callbacks[ES_MOTIONBLUR] = new MotionBlurProvider();
|
||||
@ -137,9 +136,6 @@ void Shaders::loadShaders()
|
||||
0, EMT_SOLID);
|
||||
m_shaders[ES_FLIP_ADDITIVE] = glslmat(std::string(""), dir + "flip.frag",
|
||||
0, EMT_TRANSPARENT_ADD_COLOR);
|
||||
|
||||
m_shaders[ES_COLOR_LEVELS] = glslmat(std::string(""), dir + "color_levels.frag",
|
||||
m_callbacks[ES_COLOR_LEVELS], EMT_SOLID);
|
||||
|
||||
m_shaders[ES_COLORIZE] = glslmat(std::string(""), dir + "colorize.frag",
|
||||
m_callbacks[ES_COLORIZE], EMT_SOLID);
|
||||
|
@ -40,7 +40,6 @@ using namespace irr;
|
||||
ACT(ES_MIPVIZ) \
|
||||
ACT(ES_FLIP) \
|
||||
ACT(ES_FLIP_ADDITIVE) \
|
||||
ACT(ES_COLOR_LEVELS) \
|
||||
ACT(ES_GAUSSIAN6H) \
|
||||
ACT(ES_GAUSSIAN6V) \
|
||||
ACT(ES_COLORIZE) \
|
||||
|
Loading…
Reference in New Issue
Block a user