| 79 | } |
| 80 | |
| 81 | SH9Color ProjectOntoSH9Color(const Float3& dir, const Float3& color) |
| 82 | { |
| 83 | SH9 sh = ProjectOntoSH9(dir); |
| 84 | SH9Color shColor; |
| 85 | for(uint64 i = 0; i < 9; ++i) |
| 86 | shColor.Coefficients[i] = color * sh.Coefficients[i]; |
| 87 | return shColor; |
| 88 | } |
| 89 | |
| 90 | Float3 EvalSH9Cosine(const Float3& dir, const SH9Color& sh) |
| 91 | { |
no test coverage detected