我想知道,是否可以对深度纹理进行 mipmap。如果是,那么它将如何工作以及如何使用它。
搜索了很多,但没有在任何地方得到很好的解释。
最佳答案
深度纹理绑定(bind)到标准 GL_TEXTURE_2D 目标。
来自glTexImage2d
:
level : Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
但是,如果您读入 OES_depth_texture
规范,你会发现:
WG decided to disallow manual generation of mipmaps for a depth texture.
关于opengl-es - 我们可以映射深度纹理吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14400930/