Checks the given Fragment Shader Source for %count% and %forloop% declarations and replaces those with GLSL code for setting texture = texture2D(uMainSampler[i], outTexCoord).
%count%
%forloop%
texture = texture2D(uMainSampler[i], outTexCoord)
The Fragment Shader source code to operate on.
The number of maxTextures value.
Checks the given Fragment Shader Source for
%count%and%forloop%declarations and replaces those with GLSL code for settingtexture = texture2D(uMainSampler[i], outTexCoord).