Name

directionalLight()

Examples
size(100, 100, P3D)
background(0)
noStroke()
directionalLight(51, 102, 126, -1, 0, 0)
translate(20, 50, 0)
sphere(30)
size(100, 100, P3D)
background(0)
noStroke()
directionalLight(51, 102, 126, 0, -1, 0)
translate(80, 50, 0)
sphere(30)
Description
Syntax
directionalLight(v1, v2, v3, nx, ny, nz)
Parameters
v1
v2
v3
nx
ny
nz
Related lights()
ambientLight()
pointLight()
spotLight()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License