Mir

Comment 1 for bug 1350674

Revision history for this message
Alberto Aguirre (albaguirre) wrote :

@Mirco

I don't think replacing a multiply with a branch will be faster. It most likely will be slower specially in embedded devices.

Instead I would create two separate shaders, one that does not do alpha multiplies and the default one and activate the respective shader by testing renderable.alpha() == 1.0