rgl.light {rgl} | R Documentation |
rgl.light adds a light source to the scene.
rgl.light( theta = 0, phi = 0, viewpoint.rel = TRUE, ambient = "#FFFFFF", diffuse = "#FFFFFF", specular = "#FFFFFF")
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 }
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.