unormValue function

double unormValue(
  1. int level
)

level of 255 as the f32 a GPU reads an RGBA8 texel as.

Implementation

double unormValue(int level) => roundToF32(level / 255.0);