6 ms·
You can estimate mip levels per triangle and subdivde them based on the wanted mip level across z lines, instead of doing the calculation per pixel. It's a bit
by diffuse_l 2y ago
You can estimate mip levels per triangle and subdivde them based on the wanted mip level across z lines, instead of doing the calculation per pixel. It's a bit wonky, but can work, at least for the bigger triangles.
I've linked some code that does something along those lines for mipmapping [1].
[1] https://github.com/Gil-AdB/REVIVAL/blob/0da65f18a34b74575a89694d21c9058f20f75f18/FDS/FRUSTRUM/FRUSTRUM.CPP#L454 https://github.com/Gil-AdB/REVIVAL/blob/0da65f18a34b74575a89...
- WithinReason 2y agoyeah I was wondering if you could use blue noise mipmaps, trilinear sample from it, then round to 0 or 1. With the right mipbias it feels like it should look OK.
- diffuse_l 2y agoTrilinear might be possible, but then you'll still need per pixel derivatives, no?