I'm making some tests with alpha blending in a projet and I don't understand something.
In my tests I've done something like that and everything look good:
- Draw blue box first (depth test: true, blend alpha: none, color: 1, 1, 1, 1)
- Draw left Mario (depth test: false, blend alpha: true, color: 1, 1, 1, 0.8)
- Draw red box (depth test: true, blend alpha: none, color: 1, 1, 1, 1)
- Draw right Mario (depth test: false, blend alpha: true, color: 1, 1, 1, 0.8)
Every tutorial say that we should:
- Draw opaque object first
- Order transparent object back to front then draw them.
Here is the result:
So, I'm not sure to understand how it work/what is wrong (I've read this document).
Thanks!