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.
所以在openGL中,当我调用 glClearColor() 时,有没有办法将背景颜色设置为纹理,而不是将其设置为静态颜色?或者除了 glClearColor() 之外还有其他方法可以做到这一点吗?
您无法将屏幕清除为纹理。你可以:
绘制一个屏幕大小的纹理四边形。
将 FBO 中的纹理粘贴到屏幕上。
任何一个都可以。