fixed an image-based lighting error by explicitly sampling IBL on diffuse *and* glossy surfaces at path vertices, instead of sampling IBL on diffuse surfaces only and relying on path extension for glossy surfaces.
minor refactorings.
minor refactorings.