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

Function ComputeLuminance

SampleFramework12/v1.00/SF12_Math.h:653–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651}
652
653inline float ComputeLuminance(Float3 color)
654{
655 return Float3::Dot(color, Float3(0.299f, 0.587f, 0.114f));
656}
657
658// Convert from spherical coordinates to Cartesian coordinates(x, y, z)
659// Theta represents how far away from the zenith (north pole/+Y) and phi represents how far

Callers 1

UpdateMethod · 0.85

Calls 1

Float3Class · 0.85

Tested by

no test coverage detected