I created new GLSL material and its base type is TRANSPARENT_VERTEX_ALPHA.
But calling IMeshManipulator::setVertexColorAlpha(IAnimatedMesh*, value) doesn't change it's opacity.
Do I have to change something else?
Mesh transparency
Mesh transparency
Re-creating Irrlicht with Vulkan: http://irrlicht.sourceforge.net/forum/v ... =6&t=52404
Re: Mesh transparency
Are you using the vertex color in your shader? The way you do that depends on if you work with OGL ES2 or with OpenGL. In ES2 Irrlicht passes on the variable "inVertexColor". In OpenGL I'm not certain right now (I have no example for that...), but it's probably called gl_Color.
You pass that on the pixel-shader with a varying variable and use it to calculate the final color there.
You pass that on the pixel-shader with a varying variable and use it to calculate the final color there.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Mesh transparency
I haven't come back to this, will try to update as soon as possible.
Re-creating Irrlicht with Vulkan: http://irrlicht.sourceforge.net/forum/v ... =6&t=52404