I don't think i have GLScene installed and not fussed to But seeing the code it looks that distanceRatio parameter given to function may be the key, where is it calculated and how?