Hi. How can I turn on blending example Alpha Blending for rendering my meshes? I have problem with blending by native DX API, so meybe I can use Irrlicht API for blending? In simple code, after "need function" I put similar OpenGL function. Simple code:
// How can I enable blending? It's default turn on? In OpenGL -> glEnable ( GL_BLEND);
for (u32 buffer=0; buffer < m->getMeshBufferCount(); ++buffer)
{
// How can I set blending function? In OpenGL -> glBlendFunc(GL_ONE, GL_ONE);
Driver->setMaterial(Mat);
Driver->drawMeshBuffer(m->getMeshBuffer(buffer));
}
// How can I disable blending? It's default turn on? In OpenGL -> glDisable ( GL_BLEND);
Please help me:) I need blending without using Nodes (draw meshes only per drawMeshBuffer) and SceneManager->drawAll(); etc.