MIPMAP in Ray Tracing

MIPMAP seems working magically in a fragment shader. No work in the sampling code at all. How should one make it work in a compute shader used for ray tracing?

Replies

You need to manually track your ray's footprint. A common method for doing this are ray differentials, as described here:


https://graphics.stanford.edu/papers/trd/