pub fn environment_texture<'a, 'b>(
    ctx: &Context<'a>,
    handle: Option<&str>,
    texture: &str,
    angle: Option<f64>,
    exposure: Option<f32>,
    visible: Option<bool>,
    args: Option<&ArgSlice<'b, 'a>>
) -> (String, String)where
    'a: 'b,
Expand description

Creates a textured environment light.

If handle is None a random handle is generated.

Arguments

  • `texture – A latitude-longitude texture map in one of these formats:

    • TIFF
    • JPEG
    • Radiance
    • OpenEXR
    • GIF
    • IFF
    • SGI
    • PIC
    • Photoshop PSD
    • TGA
  • angle – In degrees; specifies how much to rotate the environment around the Y (up) axis.

  • exposure – Scales the intensity in stops or EV values.

  • 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.