Currently I am building a tile map engine for a 2D game using OpenGL ES.
The tiles are on one big atlas texture with RGBA. For smooth transitions between diffrent terrains and objects on the playfield several tiles have to be rendered over each other (up to 4 terrain parts + 1 object or wall).
Currently I am using Multipass rendering which gives me the wanted results but too slow.
Currently I am trying to set up multitexturing but I don’t get the expected results.
My current approaches deliver the results I want for the RGB values but the transparency does not work
For RGB I use GL_INTERPOLATE.
Which mode must I use for the Transparency? None of the modes seems to do what I expect.
Because of hardware restrictions I can only use 2 texture stages and have to fall back to mutipass rendering if the number of tiles to be overlayed exceeds 2.
How Do I set up the texture stages to get the same result as with glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA) ?