i was wondering how i could ensure that a scenenode is drawn in front of everything else. im using directx not opengl.
I tried playing about with:
Code: Select all
m_material.ZBuffer = irr::video::ECFN_ALWAYS;
Code: Select all
m_material.ZWriteEnable = false;
This is what i have in the render function of the node:
Code: Select all
pDriver->setMaterial(m_material);
pDriver->setTransform(irr::video::ETS_WORLD, irr::core::IdentityMatrix);
pDriver->drawIndexedTriangleList(&lineVertices[0], 4, &indices[0], 2);
thanks in advance