Depth of field
The camera holds lens settings to simulate depth-of-field effects. This is controlled with the following attributes on the ICamera class, with all values being set in world scales and so must be adjusted according to the scene dimensions.
- mi::Float32 mip_lens_radius = 0.0
Controls the radius of the lens.
- mi::Float32 mip_lens_thickness = 0.0
Controls the thickness of the lens.
- mi::Float32 mip_lens_focus = 2.0
Controls the focal distance to which the camera is adjusted.