- Use previous project. Set it up as described in it's readme.
- Open
Scenes/6_SphericalHarmonics
. - Implement Monte-Carlo projection of that map into SH (
CubemapToSphericalHarmonic.compute::67
). Note that your calculations are only updated upon entering playmode. - Reproduce
(If you didn't complete previous HW, only the left sphere should be correctly lit). - Check yourself using Check My HW button. You should see "Everything is correct!" log. Otherwise you'll be shown the difference from correct values.
- Send me a screenshot of your results at mischapanin@gmail.com along with your code.
- The e-mail should have the following topic: HSE.CG.<your_name>.<your_last_name>.HW5
Bonus points: You can get an extra 20% bonus if you implement support for some sort of brdf, allowing for various degrees of surface roughness.
Note: This is the solution used in real games. Keep it as fast as possible.