MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / ProjectOntoH4Color

Function ProjectOntoH4Color

SampleFramework11/v1.02/Graphics/SH.cpp:124–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124H4Color ProjectOntoH4Color(const Float3& dir, const Float3& color)
125{
126 H4 projected = ProjectOntoH4(dir);
127 H4Color hColor;
128 for(uint64 i = 0; i < 4; ++i)
129 hColor.Coefficients[i] = color * projected.Coefficients[i];
130 return hColor;
131}
132
133float EvalH4(const H4& h, const Float3& dir)
134{

Callers

nothing calls this directly

Calls 1

ProjectOntoH4Function · 0.85

Tested by

no test coverage detected