user1896853
user1896853

Reputation: 117

Can we mipmap depth textures?

I wanted to know, is it possible to mipmap a depth texture. If, yes then how it will work and were to use it.

Search a lot, but didn't get good explanation anywhere.

Upvotes: 2

Views: 556

Answers (1)

Bartek Banachewicz
Bartek Banachewicz

Reputation: 39390

Depth texture is bound to standard GL_TEXTURE_2D target.

From glTexImage2d:

level : Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.

However, if you read into OES_depth_texture specification, you'll find that:

WG decided to disallow manual generation of mipmaps for a depth texture.

Upvotes: 6

Related Questions