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
@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