glTF-IBL-Sampler
glTF-IBL-Sampler copied to clipboard
Add 1 to mipmap count so that the lowest mip size is 1x1
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.