rgl.light {rgl}R Documentation

add light source

Description

rgl.light adds a light source to the scene.

Usage

rgl.light( theta = 0, phi = 0, viewpoint.rel = TRUE, ambient = "#FFFFFF", diffuse = "#FFFFFF", specular = "#FFFFFF")

Arguments

theta, phi polar coordinates
viewpoint.rel logical, if TRUE light is a viewpoint light that is positioned relative to the current viewpoint
ambient, diffuse, specular

{ light color values used for lighting calculation }

Details

Up to 8 light sources are supported. They are positioned either in world space or relative to the camera using polar coordinates. Light sources are directional.

See Also

rgl.clear rgl.pop


[Package rgl version 0.64-13 Index]