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.
当我渲染一个立方体并对其进行纹理处理时,我最终会沿着立方体出现白色边缘。我检查了顶点和纹理坐标,它们对我来说看起来不错。我的纹理是 2 的幂。它是一个包含 4x4 纹理的纹理贴图,其中每个纹理为 16x16 像素。有没有人有什么建议?
我猜你正在经历纹理出血。您可以通过在纹理上使用 GL_CLAMP 或将 UV 坐标稍微调整为 0.0005 和 0.0095(例如)而不是 0 和 1 来解决它,以补偿纹理采样伪影。