Closed JustinPrivitera closed 3 years ago
this is a core feature. Phong diffuse lighting is nice, but it's very simple. If we want to do cool things with lighting, we're going to want a more advanced lighting algorithm. Foggy day is more expensive and does a lot of recursion, but is needed for basically all the cool lighting effects. We'll implement this once we know what kind of framerate we can get when rendering real time.
this is expensive and looks patchy. We can discuss as a group what is best, but it might be a good idea to think about building a hybrid between phong and foggy, and only do foggy on shapes we want to be particularly reflective.
It also could be good to lessen the effect of shadows in phong diffuse to make shadows look realistic. This could be done by adding in ambient light at the end of the pipeline or by returning some fraction of the object color instead of black.
ok now you can toggle which lighting algorithm to use by pressing "M" on the keyboard
Is this a core feature? What milestone