glTF-IBL-Sampler icon indicating copy to clipboard operation
glTF-IBL-Sampler copied to clipboard

Add 1 to mipmap count so that the lowest mip size is 1x1

Open expenses opened this issue 3 years ago • 0 comments

At the moment we use log2(X) for the number of mips, so log2(1024) = 10 mips. This only goes down to a size of 2x2 for the smallest mip, so we want to add 1 to the result: log2(X) + 1.

expenses avatar May 21 '22 19:05 expenses