Add an Infinite Light

add_infinite_light(scene, light, name = NULL, replace = FALSE)

Arguments

scene

Scene to modify.

light

Light created with infinite_light(), sky_light(), sky_light_image(), sun_light(), or moon_light().

name

Default NULL. Optional name overriding the light's name.

replace

Default FALSE. Replace an existing light with the same name.

Value

A modified scene.