开发者

Repeating only a portion of a texture in OpenGL ES?

I know it's possible to repeat an entire texture by setting the wrap mode to GL_REPEAT, but is it somehow possible to开发者_StackOverflow中文版 repeat only a subregion of the texture? For example, when the texture is part of an atlas.

I'm targetting OpenGL ES 1.x, so shaders are out.


Unfortunatelly, it is not possible. The only thing you can do it to repeat side pixels (if the image is at the edge of a texture altals).

If you need tiling – probably the only solution here is generate is with geometry. Otherwise, just go with a separate texture.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜