Skip to content

Commit 8f12fb7

Browse files
Docs: "A maximum of 5 directional lights can be active at once."
Documentation for other light source types already says this. I found the limit by experimentation. Fixes #4234 #4234
1 parent 711869b commit 8f12fb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/webgl/light.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ p5.prototype.specularColor = function (v1, v2, v3) {
465465
* that shines from somewhere offscreen. The light’s direction is set using
466466
* three `(x, y, z)` values between -1 and 1. For example, setting a light’s
467467
* direction as `(1, 0, 0)` will light <a href="#/p5.Geometry">p5.Geometry</a>
468-
* objects from the left since the light faces directly to the right.
468+
* objects from the left since the light faces directly to the right. A
469+
* maximum of 5 directional lights can be active at once.
469470
*
470471
* There are four ways to call `directionalLight()` with parameters to set the
471472
* light’s color and direction.

0 commit comments

Comments
 (0)