Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: "A maximum of 5 directional lights can be active at once." #7337

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/webgl/light.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@ p5.prototype.specularColor = function (v1, v2, v3) {
* that shines from somewhere offscreen. The light’s direction is set using
* three `(x, y, z)` values between -1 and 1. For example, setting a light’s
* direction as `(1, 0, 0)` will light <a href="#/p5.Geometry">p5.Geometry</a>
* objects from the left since the light faces directly to the right.
* objects from the left since the light faces directly to the right. A
* maximum of 5 directional lights can be active at once.
*
* There are four ways to call `directionalLight()` with parameters to set the
* light’s color and direction.
Expand Down
Loading