Source code for pbrt, the renderer described in the third edition of "Physically Based Rendering: From Theory To Implementation", by Matt Pharr, Wenzel Jakob, and Greg Humphreys.
Using typedef SampledSpectrum Spectrum in pbrt.h, imgtool fails to compile with
imgtool.cpp:729:26: error: no match for ‘operator=’ (operand types are ‘pbrt::RGBSpectrum’ and ‘pbrt::SampledSpectrum’)
image[i] = Spectrum::FromRGB(rgb);
The image contains RGBSpectrum, so my proposed fix is to make the spectrum type explicit:
Using
typedef SampledSpectrum Spectrum
inpbrt.h
,imgtool
fails to compile withThe
image
containsRGBSpectrum
, so my proposed fix is to make the spectrum type explicit: