tylermorganwall / rayrender

A pathtracer for R. Build and render complex scenes and 3D data visualizations directly from R
http://www.rayrender.net
622 stars 42 forks source link

Fix #5: Smaller apertures should increase depth of field #6

Closed brodieG closed 4 years ago

brodieG commented 4 years ago

This is consistent with my understanding of photography and also appears to correspond to what rayrender does from some real quick experimentation. I'm still bumbling about so I could be completely wrong.

tylermorganwall commented 4 years ago

Good catch, will update it in the next version to make it clear larger aperture = shallower depth of field, more blur outside of focal point

brodieG commented 4 years ago

Fyi, just noticed that there is an example that uses aperture that has a comment that will also need to be updated. Since you are planning on updating this anyway I'll leave it be.

Increase the aperture to give more depth of field.