Skip to content
Permalink
Browse files

Fix particles draworder

  • Loading branch information
BlockMen committed Feb 20, 2015
1 parent 3998a1f commit c09d026f0561ee3c6db821a7e193716f724a0e4a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/particles.cpp
@@ -71,6 +71,7 @@ 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;
@@ -119,8 +120,7 @@ void Particle::OnRegisterSceneNode()

void Particle::render()
{
// TODO: Render particles in front of water and the selectionbox

SceneManager->getParameters()->setAttribute(scene::ALLOW_ZWRITE_ON_TRANSPARENT, true);
video::IVideoDriver* driver = SceneManager->getVideoDriver();
driver->setMaterial(m_material);
driver->setTransform(video::ETS_WORLD, AbsoluteTransformation);

1 comment on commit c09d026

@kilbith

This comment has been minimized.

Copy link
Contributor

@kilbith kilbith commented on c09d026 Feb 27, 2015

Please sign in to comment.
You can’t perform that action at this time.