light_directional {threejs}R Documentation

Plot illumination

Description

Plot illumination

Usage

light_directional(color = "#eeeeee", position = c(0, 0, 0))

Arguments

color

the light color

position

the light position as an (x, y, z) coordinate vector with entries in [-1, 1]

Value

An object for use with the lights argument in scatterplot3js and graphjs.


[Package threejs version 0.3.3 Index]