Skip to content

Commit

Permalink
Neo6502 - sample/cube refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
zbyti committed Sep 1, 2024
1 parent 4fcedd6 commit 2b30e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/neo6502/demoeffects/cube.pas
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ procedure rotatePoints;
v2 := vertecs[n,2];
tmp1 := s * v0 + c * v1;
tmp2 := s * (c * v0 - s * v1) + c * v2;
cube[n,0] := Trunc((- c * c * v0 + c * s * v1 + s * v2) * scale + originX);
cube[n,0] := Trunc((c * (-c * v0 + s * v1) + s * v2) * scale + originX);
cube[n,1] := Trunc((c * tmp1 - s * tmp2) * scale + originY);
cube[n,2] := Trunc((s * tmp1 + c * tmp2) * scale);
end;
Expand Down

0 comments on commit 2b30e41

Please sign in to comment.