3
votes
Accepted
How to access an uniform array with a float as index in GLSL?
I'm not 100% sure exactly what the cause of the problem is, but I know the "right" way to do what you're trying to achieve. But I think the problem is that an array of samplers is only supposed to be ...
1
vote
Accepted
Is texture switching a good idea (OpenGL, 2D)?
Generally speaking, atlasing isn't that easy to implement either. You have to associate each animation frame with texture coordinates. If your sprites are not adjusted to viewport pixels, you can have ...
1
vote
Accepted
What is better: One texture per model or assigning multiple models to one single huge texture?
There is no "best" way to do it, in a general sense.
That being said, hardware considerations can have an impact on the decision of which way to go.
For example, if you are running on something like ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
multitexturing × 12opengl × 4
textures × 4
android × 3
opengl-es × 3
java × 2
shaders × 2
lwjgl3 × 2
unity × 1
c++ × 1
directx × 1
glsl × 1
models × 1
opengl-es2 × 1
mobile × 1
terminology × 1
texture-atlas × 1
cubemap × 1