Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道可以通过将环绕模式设置为 GL_REPEAT 来重复整个纹理,但是是否可以仅重复纹理的一个子区域?例如,当纹理是图集的一部分时。
我的目标是 OpenGL ES 1.x,所以着色器不在了。
不幸的是,这是不可能的。您唯一可以做的就是重复侧面像素(如果图像位于纹理边缘的边缘)。
如果您需要平铺 - 可能这里唯一的解决方案是生成几何图形。否则,只需使用单独的纹理即可。