MCPcopy Create free account
hub / github.com/RenderKit/embree / luminance

Function luminance

common/math/color.h:260–260  ·  view source on GitHub ↗

! computes luminance of a color */

Source from the content-addressed store, hash-verified

258
259 /*! computes luminance of a color */
260 __forceinline float luminance (const Color& a) { return madd(0.212671f,a.r,madd(0.715160f,a.g,0.072169f*a.b)); }
261
262 /*! output operator */
263 __forceinline embree_ostream operator<<(embree_ostream cout, const Color& a) {

Callers 1

InstantiatorMethod · 0.50

Calls 1

maddFunction · 0.70

Tested by

no test coverage detected