JustinPrivitera / Real_Time_Ray_Tracer

final project for csc 572, graduate graphics
1 stars 0 forks source link

foggy day diffuse lighting #7

Closed JustinPrivitera closed 3 years ago

kkevlar commented 3 years ago

Is this a core feature? What milestone

JustinPrivitera commented 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.

JustinPrivitera commented 3 years ago

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.

JustinPrivitera commented 3 years ago

ok now you can toggle which lighting algorithm to use by pressing "M" on the keyboard