| get_camera | R Documentation |
Gets a camera from a 'ray_scene'.
get_camera(scene, camera = NULL)
scene |
Scene containing cameras. |
camera |
Default 'NULL'. Camera name, 'ray_camera' object, or 'NULL' to use the active camera. |
A 'ray_camera' object.
scene = generate_ground(material=diffuse(color="grey20")) |>
add_camera(camera(name = "wide", fov = 55), active = FALSE) |>
add_camera(camera(name = "main", fov = 35), active = TRUE)
# Returns the active camera.
get_camera(scene)
# Returns a named camera.
get_camera(scene, "wide")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.