if (FALSE) { # interactive() || identical(Sys.getenv("IN_PKGDOWN"), "true")
scene = generate_ground(material=diffuse(color="grey20")) |>
add_object(sphere()) |>
add_camera(camera(
name = "main",
lookfrom = c(0, 1, -10),
lookat = c(0, 0, 0),
fov = 35
))
render_scene(scene, samples = 16)
}
Run the code above in your browser using DataLab