| set_active_camera | R Documentation |
Sets the active camera for a 'ray_scene'.
set_active_camera(scene, camera)
scene |
Scene containing cameras. |
camera |
Camera name. |
A modified 'ray_scene'.
scene = generate_ground(material=diffuse(color="grey20")) |>
add_camera(camera(name = "wide", fov = 55), active = FALSE) |>
add_camera(camera(name = "detail", fov = 20), active = FALSE)
scene = set_active_camera(scene, "detail")
get_camera(scene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.