| 38 | } |
| 39 | |
| 40 | SH9Color 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 | |
| 49 | H4 ProjectOntoH4(const Float3& dir) |
| 50 | { |
nothing calls this directly
no test coverage detected