Skip to main content

Function: computeFeatureLodOffset()

computeFeatureLodOffset(textureResolution, baseResolution): number

Extra mips covered by G0 before advancing through the feature pyramid. Table 1: texture 1024 / grid 256 gives offset 2, hence the first band is [0,1,2,3], followed by [4,5], [6,7], and the final open-ended band.

Parameters​

textureResolution​

number

baseResolution​

number

Returns​

number