Name

lightFalloff()

Examples
size(100, 100, P3D)
noStroke()
background(0)
lightFalloff(1.0, 0.001, 0.0)
pointLight(150, 250, 150, 50, 50, 50)
beginShape()
vertex(0, 0, 0)
vertex(100, 0, -100)
vertex(100, 100, -100)
vertex(0, 100, 0)
endShape(CLOSE)
Description
Syntax
lightFalloff(constant, linear, quadratic)
Parameters
constant
linear
quadratic
Related lights()
ambientLight()
pointLight()
spotLight()
lightSpecular()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License