Hello all,
I am rendering a 3D object WITHOUT lighting. However, I would like to change the opacity of this object.
Is it possible? Or, will I have any rendering issue?
Thank you
Hello all,
I am rendering a 3D object WITHOUT lighting. However, I would like to change the opacity of this object.
Is it possible? Or, will I have any rendering issue?
Thank you
Enable blending using glEnable(GL_BLEND)
, then choose the correct blending function you need (glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
should be fine) and set the correct color of your model so it has an alpha component different from 1 (either from a texture or from glColor4. function).