| 32 | } |
| 33 | |
| 34 | SH4Color ProjectOntoSH4Color(const Float3& dir, const Float3& color) |
| 35 | { |
| 36 | SH4 sh = ProjectOntoSH4(dir); |
| 37 | SH4Color shColor; |
| 38 | for(uint64 i = 0; i < 4; ++i) |
| 39 | shColor.Coefficients[i] = color * sh.Coefficients[i]; |
| 40 | return shColor; |
| 41 | } |
| 42 | |
| 43 | Float3 EvalSH4Cosine(const Float3& dir, const SH4Color& sh) |
| 44 | { |
no test coverage detected