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

Method y

SampleFramework12/v1.00/Graphics/Spectrum.h:374–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372 xyz[2] *= scale;
373 }
374 float y() const {
375 float yy = 0.f;
376 for (int i = 0; i < NumSpectralSamples; ++i) yy += Y.c[i] * c[i];
377 return yy * float(SampledLambdaEnd - SampledLambdaStart) /
378 float(CIE_Y_integral * NumSpectralSamples);
379 }
380 void ToRGB(float rgb[3]) const {
381 float xyz[3];
382 ToXYZ(xyz);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected