Skip to content

Latest commit

 

History

History
14 lines (7 loc) · 863 Bytes

README.md

File metadata and controls

14 lines (7 loc) · 863 Bytes

Raytracing non-RT

For the different diffuse methods, the random_in_unit_sphere uses any point in a sphere around the normal unit vector point.

Unit sphere diffuse

The random_unit_vector diffuse method uses points ON the sphere surface (unit vector). This way, we get points with direction closer to the normal.

Unit vector diffuse

The random_in_hemisphere will only use points pointing in the same hemisphere as the normal, or in other words, rejecting all points that are over 90 degrees in difference from the normal.

Unit vector diffuse