better sampling of wavelengths and a bug fixed in spectrum shader