GPUParticles: Tell irrlicht that we disable cullface test.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14890 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
vincentlj
2014-01-02 17:40:14 +00:00
parent 96841f5731
commit d63b5af530

View File

@@ -244,9 +244,10 @@ ParticleSystemProxy::ParticleSystemProxy(bool createDefaultEmitter,
fakemat.Lighting = false;
fakemat.ZWriteEnable = false;
fakemat.MaterialType = irr_driver->getShader(ES_RAIN);
fakemat.Thickness = 200;
fakemat.setTexture(0, getMaterial(0).getTexture(0));
fakemat.BlendOperation = video::EBO_NONE;
fakemat.FrontfaceCulling = false;
fakemat.BackfaceCulling = false;
glGenBuffers(1, &initial_values_buffer);
glGenBuffers(2, tfb_buffers);
if (quad_vertex_buffer)
@@ -657,7 +658,6 @@ void ParticleSystemProxy::draw()
glDisableVertexAttribArray(attrib_sz);
glBindBuffer(GL_ARRAY_BUFFER, 0);
glActiveTexture(GL_TEXTURE0);
glEnable(GL_CULL_FACE);
glDisable(GL_BLEND);
}