MCPcopy Create free account
hub / github.com/TheRealMJP/Shadows / ProjectOntoSH9Color

Function ProjectOntoSH9Color

Shadows/SampleFramework11/SH.cpp:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40SH9Color ProjectOntoSH9Color(const Float3& dir, const Float3& color)
41{
42 SH9 sh = ProjectOntoSH9(dir);
43 SH9Color shColor;
44 for(uint64 i = 0; i < 9; ++i)
45 shColor.Coefficients[i] = color * sh.Coefficients[i];
46 return shColor;
47}
48
49H4 ProjectOntoH4(const Float3& dir)
50{

Callers

nothing calls this directly

Calls 1

ProjectOntoSH9Function · 0.85

Tested by

no test coverage detected