Draw 3 textures by specifying shader
texture | Specifies the texture to use for drawing |
texture2 | Specifies the second texture to use for drawing |
texture3 | Specifies the third texture to use for drawing |
shader | Specifies the shader to use for drawing |
In the case of OpenGL ES 2.0, the maximum number of textures is 8, and in 3.0, the maximum number is 16 on the vertex side and 16 on the fragment side, so you can still add them, but for the time being, up to 3 are defined.
In the future, we will make a version that passes textures in an array, and we will consider dealing with 4 or more sheets there.