add js code to create texture atlases in order to bypass sampler2D hardware limits
add glsl code to take advantage of texture atlas