The mesh batching is a render technique consisting in merging multiple different meshes into an unique one and render it. It allows to render faster a big number of meshes using the same material. The only limits is that the objects must be static.
The merge operations are made only from python through the new class
KX_BatchGroup. This class is constructed by the user and shared between game objects, so the constructor must take objects owner:
batchGroup = bge.types.KX_BatchGroup(["Cube", "Plane"])
Strength Low Frequencyand
Strength High Frequency.
KX_2DFilter.mipmap = True
uniform sampler2D bgl_RenderedTexture;
float level = 2.0; // mipmap level
gl_FragColor = textureLod(bgl_RenderedTexture, gl_TexCoord.st, level);