generateCubeUVSize method
Implementation
Map<String,dynamic>? generateCubeUVSize(parameters) {
final imageHeight = parameters.cubeUVHeight;
if (imageHeight == null) return null;
int maxMip = MathUtils.log2(imageHeight).toInt() - 2;
final texelHeight = 1.0 / imageHeight;
final texelWidth = 1.0 / (3 * math.max(math.pow(2, maxMip), 7 * 16));
return {"texelWidth": texelWidth, "texelHeight": texelHeight, "maxMip": maxMip};
}