Fixed bug in opacityTF for lighting calculations.