Skip to content
Snippets Groups Projects
Commit 3b1ac5b8 authored by Loïc Blot's avatar Loïc Blot
Browse files

Revert "Fix particles draworder" (issue #2388)

This reverts commit c09d026f.
parent fdb91408
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,6 @@ Particle::Particle(
m_material.setFlag(video::EMF_BACK_FACE_CULLING, false);
m_material.setFlag(video::EMF_BILINEAR_FILTER, false);
m_material.setFlag(video::EMF_FOG_ENABLE, true);
m_material.setFlag(video::EMF_ZWRITE_ENABLE, true);
m_material.MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL;
m_material.setTexture(0, texture);
m_texpos = texpos;
......@@ -120,7 +119,8 @@ void Particle::OnRegisterSceneNode()
void Particle::render()
{
SceneManager->getParameters()->setAttribute(scene::ALLOW_ZWRITE_ON_TRANSPARENT, true);
// TODO: Render particles in front of water and the selectionbox
video::IVideoDriver* driver = SceneManager->getVideoDriver();
driver->setMaterial(m_material);
driver->setTransform(video::ETS_WORLD, AbsoluteTransformation);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment