Skip to content

Commit

Permalink
fix: fixed light interaction, particle shadow wasn't calculated corre…
Browse files Browse the repository at this point in the history
…ctly
  • Loading branch information
matteobruni committed Aug 3, 2023
1 parent d2cb0a4 commit da86a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interactions/light/src/Utils.ts
Expand Up @@ -96,7 +96,7 @@ export function drawParticleShadow(
const shadowColor = getStyleFromRgb(shadowRgb),
last = points.length - 1;

for (let i = last, n = 0; i >= 0; n = --i) {
for (let i = last, n = 0; i >= 0; n = i--) {
context.beginPath();

context.moveTo(points[i].start.x, points[i].start.y);
Expand Down

0 comments on commit da86a37

Please sign in to comment.