Light & Camera
Lights
- ambientLight()
- directionalLight()
- lightFalloff()
- lightSpecular()
- lights()
- noLights()
- normal()
- pointLight()
- spotLight() : Note - on this linked page, this function's syntax is
spotLight(v1, v2, v3, nx, ny, nz, angle, concentration)
, which SHOULD BE spotLight(v1, v2, v3, x, y, z, nx, ny, nz, angle, concentration)
Camera
Coordinates
Material Properties
Example
from processing import *
def setup():
size(560, 400, P3D)
#printCamera()
#printProjection()
def draw():
noFill()
beginCamera()
camera()
rotateX(-PI/6)
endCamera()
translate(50, 50, 0)
rotateY(PI/3)
box(45)
run()
Reference