Skip to content

Commit 2fd3647

Browse files
authored
stage lights now work with rotation
1 parent cf164d2 commit 2fd3647

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

static/extensions/Gen1x/lighting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ self.onmessage = ({ data: msg }) => {
15221522

15231523
buf[base + 8] = (li.width || 0) / camScale;
15241524
buf[base + 9] = (li.height || 0) / camScale;
1525-
buf[base + 10] = (li.direction - 90) * (Math.PI / 180) + camDirRad;
1525+
buf[base + 10] = (li.direction - 90) * (Math.PI / 180) - camDirRad;
15261526
buf[base + 11] = (Math.abs(li.arc) / 2) * (Math.PI / 180);
15271527
}
15281528

0 commit comments

Comments
 (0)