ambientLight()

Lights Camera / Lights

Description

Adds an ambient light. Ambient light has no position or direction.

Syntax

void ambientLight(float r, float g, float b) void ambientLight(float r, float g, float b, float x, float y, float z)

Parameters

NameTypeDescription
rfloatred component
gfloatgreen component
bfloatblue component
x/y/zfloatposition (optional)

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...