ambientLight()
Lights Camera / LightsDescription
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
| Name | Type | Description |
|---|---|---|
| r | float | red component |
| g | float | green component |
| b | float | blue component |
| x/y/z | float | position (optional) |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...