Spherical direction and texture sampling bug fixed.