diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-27 14:15:17 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-27 14:15:24 +0100 |
commit | 3b1ac5b889bc84fe3f73eee583228cef10d945c1 (patch) | |
tree | 4f546905aba32dc81a80482f4f029fefa15147c0 /src | |
parent | fdb9140825716be49c99e6a27bb123432b9cb285 (diff) | |
download | minetest-3b1ac5b889bc84fe3f73eee583228cef10d945c1.tar.gz minetest-3b1ac5b889bc84fe3f73eee583228cef10d945c1.tar.bz2 minetest-3b1ac5b889bc84fe3f73eee583228cef10d945c1.zip |
Revert "Fix particles draworder" (issue #2388)
This reverts commit c09d026f0561ee3c6db821a7e193716f724a0e4a.
Diffstat (limited to 'src')
-rw-r--r-- | src/particles.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/particles.cpp b/src/particles.cpp index a9e834826..603e38cdd 100644 --- a/src/particles.cpp +++ b/src/particles.cpp @@ -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); |