Removed one more reference to global functions.
This commit is contained in:
parent
30fa3345e4
commit
e4f29d4dea
@ -293,6 +293,13 @@ public:
|
|||||||
assignUniforms("density", "col");
|
assignUniforms("density", "col");
|
||||||
assignSamplerNames(0, "tex", ST_NEAREST_FILTERED);
|
assignSamplerNames(0, "tex", ST_NEAREST_FILTERED);
|
||||||
} // FogShader
|
} // FogShader
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
void render(float start, const core::vector3df &color)
|
||||||
|
{
|
||||||
|
setTextureUnits(irr_driver->getDepthStencilTexture());
|
||||||
|
drawFullScreenEffect(1.f / (40.f * start), color);
|
||||||
|
|
||||||
|
} // render
|
||||||
}; // FogShader
|
}; // FogShader
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@ -544,9 +551,7 @@ void IrrDriver::renderAmbientScatter()
|
|||||||
glBlendEquation(GL_FUNC_ADD);
|
glBlendEquation(GL_FUNC_ADD);
|
||||||
glBlendFunc(GL_ONE, GL_ONE);
|
glBlendFunc(GL_ONE, GL_ONE);
|
||||||
|
|
||||||
FogShader::getInstance()
|
FogShader::getInstance()->render(start, col);
|
||||||
->setTextureUnits(irr_driver->getDepthStencilTexture());
|
|
||||||
DrawFullScreenEffect<FogShader>(1.f / (40.f * start), col);
|
|
||||||
} // renderAmbientScatter
|
} // renderAmbientScatter
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user