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