Media nest: the innermost medium replaces the surrounding one. Cameras inside
media are detected automatically. A medium with zero absorption and scattering
creates a vacuum cavity. Intersecting, non-nested volume boundaries are unsupported.
Usage
set_medium(scene, medium, keep_surface = FALSE)
Value
The scene with medium attachments stored independently of materials.
Arguments
scene
A `ray_scene` containing closed spheres, cubes, ellipsoids, or
watertight consistently oriented triangle meshes.
medium
A description from [homogeneous_medium()], [grid_medium()], or
[nanovdb_medium()]. Use `NULL` to remove an attachment.
keep_surface
Default `FALSE`. Keep the object's surface material when
`TRUE`, for example to place a medium inside glass. Dielectric attenuation
adds absorption to the medium; it does not add emission.