List Infinite Lights

list_infinite_lights(scene)

Arguments

scene

Scene containing infinite lights.

Value

A named list of `ray_infinite_light` objects.

Examples

scene = sphere() |>
  add_infinite_light(sky_light_image(elevation = 30, azimuth = 120, name = "key")) |>
  add_infinite_light(sky_light_image(
    elevation = 60, azimuth = 240, intensity = 0.2, name = "fill"
  ))
list_infinite_lights(scene)
#> $key
#> Infinite light 'key' (sky_image)
#>   elevation: 30 degrees
#>   azimuth: 120 degrees
#>   intensity: 1
#>   rotation: 0 degrees
#> 
#> $fill
#> Infinite light 'fill' (sky_image)
#>   elevation: 60 degrees
#>   azimuth: 240 degrees
#>   intensity: 0.2
#>   rotation: 0 degrees
#> 
names(list_infinite_lights(scene))
#> [1] "key"  "fill"