Looks like transparent object correctly displays without z sorting issue when camera moves/rotate
Even deferred render receive some lights.
But not sure why transparent is too much transparent. Even alpha is set to 254. Maybe I did it wrongly.
I used:
Code: Select all
IMeshManipulator *manip = device->getSceneManager()->getMeshManipulator();
for (int j = 0; j < mNode->getMaterialCount(); ++j)
{
mNode->getMaterial(j).MaterialType = video::EMT_TRANSPARENT_VERTEX_ALPHA;
for (int k = 0; k < mNode->getMesh()->getMeshBufferCount(); ++k)
{
manip->setVertexColorAlpha(mNode->getMesh()->getMeshBuffer(k), value);
}
}
Thanks
thanh