Javier Ramírez
Javier Ramírez

Reputation: 1011

GLSL 1.2 + Textures Non Power Of Two

I have read about using sampler2DRect and texture2DRect to use rectangular textures. My question is whether its use is recommended for creating sprites 2D using GLSL, or if there is another alternative to using images that are not necessarily a power of two.

Upvotes: 0

Views: 226

Answers (1)

Nicol Bolas
Nicol Bolas

Reputation: 473407

If all you need are non-power-of-two textures, that's something OpenGL has supported for all texture types since GL 2.0. So you don't need rectangle textures if NPOTs are all you want.

Upvotes: 1

Related Questions