GPUParticles: Reset irrlicht blending state.
It fixes some flickering artifact. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14888 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
1b564a81a7
commit
39d79c555a
@ -196,6 +196,7 @@ GPUParticle::GPUParticle(scene::ISceneNode *parent, scene::ISceneManager* mgr, I
|
||||
fakemat.MaterialType = irr_driver->getShader(ES_RAIN);
|
||||
fakemat.Thickness = 200;
|
||||
fakemat.setTexture(0, tex);
|
||||
fakemat.BlendOperation = video::EBO_NONE;
|
||||
setAutomaticCulling(0);
|
||||
}
|
||||
|
||||
@ -656,6 +657,7 @@ void ParticleSystemProxy::draw()
|
||||
glBindBuffer(GL_ARRAY_BUFFER, 0);
|
||||
glActiveTexture(GL_TEXTURE0);
|
||||
glEnable(GL_CULL_FACE);
|
||||
glDisable(GL_BLEND);
|
||||
}
|
||||
|
||||
void ParticleSystemProxy::render() {
|
||||
|
Loading…
Reference in New Issue
Block a user