spotLight()

Lights Camera / Lights

Description

Adds a spotlight. Creates a cone of light from a specific position pointing in a direction.

Syntax

void spotLight(float r, float g, float b, float x, float y, float z, float nx, float ny, float nz, float angle, float concentration)

Parameters

NameTypeDescription
r/g/bfloatcolor components
x/y/zfloatposition
nx/ny/nzfloatdirection
anglefloatcone angle in radians
concentrationfloatexponent determining center bias

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...