directionalLight()
Lights Camera / LightsDescription
Adds a directional light. Comes uniformly from one direction, like sunlight.
Syntax
void directionalLight(float r, float g, float b, float nx, float ny, float nz)
Parameters
| Name | Type | Description |
|---|---|---|
| r | float | red component |
| g | float | green component |
| b | float | blue component |
| nx | float | x direction |
| ny | float | y direction |
| nz | float | z direction |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...