Add support for refDistance, maxDistance and rolloffFactor.