Hello to everybody,
In the shader i am developing i need to read from a texture another texture id.
In other word i have a texture where i saved some textures id generated by "glGenTexture" and i need to access to these textures using glsl.
If i read using textureRect(, ); the returned value will be a float or an int and is not possible to cast it to a sampler2D in order to use again textureRect on the returned value.
I read about "array of samplers" or "sampler2DArray" but i don't think it can be usefull cause i have to use a lot of texture.
Do you have any advice? thanks!