Which is faster: Blend Mode

Hi,

Which is generally the better method to use in a scene where some objects have varying degrees of alpha while others remain opaque:

  1. Set up GL_BLEND to be enabled all the time, and then give opaque objects an alpha of 1.

  2. Enable GL_BLEND for only the objects that will be blended, and disable it when drawing the opaque.

Thanks.

Quite sure it’s (2), especially if you group all your transparent objects and you render them after non-transparent objects have been rendered.

and one rule-of-the-thumb is first to render all non-transparent objects and then render all transparent objects.

I have a strange feeling of deja-vu.