Function nsi_3delight::environment
source · pub fn environment(
ctx: &Context<'_>,
handle: Option<&str>,
angle: Option<f64>,
visible: Option<bool>
) -> (String, String)
Expand description
Creates a typical environment node.
A latitutde-lungitude environment map will be aligned as-shot with the horizon along the X-Z plane at infinity.
If handle
is None
a random handle is generated.
Arguments
-
angle
– In degrees; specifies how much to rotate the environment around the Y (up) axis. -
visible
– If the environment is visible to the camera.
Returns handle
and the handle of the created shader
.
Note that the shader
node is empty. It is up to the user
to set the resp. attributes on the node or hook up an OSL
network below it.