MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / SampledSpectrum

Method SampledSpectrum

SampleFramework12/v1.00/Graphics/Spectrum.cpp:188–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188SampledSpectrum::SampledSpectrum(const RGBSpectrum &r, SpectrumType t) {
189 float rgb[3];
190 r.ToRGB(rgb);
191 *this = SampledSpectrum::FromRGB(rgb, t);
192}
193
194float InterpolateSpectrumSamples(const float *lambda, const float *vals, int n,
195 float l) {

Callers

nothing calls this directly

Calls 1

ToRGBMethod · 0.45

Tested by

no test coverage detected