ported lighting FS-function from NV "Rain"