If im trying to create an obj. file loader in c++ and draw it with opengl i need to use multiple textures in the fragment shader.I know i can just use:
`uniform sampler2D Texture1`
`uniform sampler2D Texture2`
`uniform sampler2D Texture3`
`uniform sampler2D Texture4`
But i think there must be an elegant way to do it.Like a vector of samplers or something.Im asking this because i dont want to declare
n textures in my fragment shader and type
n if's where i test which texture i should use for the current fragment.It just looks ugly.