| 17 | { |
| 18 | |
| 19 | SH4 ProjectOntoSH4(const Float3& dir) |
| 20 | { |
| 21 | SH4 sh; |
| 22 | |
| 23 | // Band 0 |
| 24 | sh.Coefficients[0] = 0.282095f; |
| 25 | |
| 26 | // Band 1 |
| 27 | sh.Coefficients[1] = 0.488603f * dir.y; |
| 28 | sh.Coefficients[2] = 0.488603f * dir.z; |
| 29 | sh.Coefficients[3] = 0.488603f * dir.x; |
| 30 | |
| 31 | return sh; |
| 32 | } |
| 33 | |
| 34 | SH4Color ProjectOntoSH4Color(const Float3& dir, const Float3& color) |
| 35 | { |
no outgoing calls
no test coverage detected