From 746c1ad8830f109e21fe1b002e52b7eb3ad0dc97 Mon Sep 17 00:00:00 2001 From: Lalit Narayan Yadav <162928571+LalitNarayanYadav@users.noreply.github.com> Date: Fri, 25 Apr 2025 18:39:57 +0530 Subject: [PATCH] Fix typo in directionalLight reference (dev-2.0 branch) #7743 --- src/webgl/light.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webgl/light.js b/src/webgl/light.js index cd8db3273c..815dfec4d9 100644 --- a/src/webgl/light.js +++ b/src/webgl/light.js @@ -473,7 +473,7 @@ function light(p5, fn){ * three parameters, `v1`, `v2`, and `v3`, set the light’s color using the * current colorMode(). The last parameter, * `direction` sets the light’s direction using a - * p5.Geometry object. For example, + * p5.Vector object. For example, * `directionalLight(255, 0, 0, lightDir)` creates a red `(255, 0, 0)` light * that shines in the direction the `lightDir` vector points. * @@ -488,7 +488,7 @@ function light(p5, fn){ * parameter, `color`, sets the light’s color using a * p5.Color object or an array of color values. The * second parameter, `direction`, sets the light’s direction using a - * p5.Color object. For example, + * p5.Vector object. For example, * `directionalLight(myColor, lightDir)` creates a light that shines in the * direction the `lightDir` vector points with the color value of `myColor`. *