Skip to content

Commit

Permalink
Clean up (#26650)
Browse files Browse the repository at this point in the history
  • Loading branch information
WestLangley authored Aug 27, 2023
1 parent 01b3638 commit 391c8ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Binary file modified examples/screenshots/webgl_instancing_performance.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 1 addition & 6 deletions examples/webgl_instancing_performance.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
const randomizeMatrix = function () {

const position = new THREE.Vector3();
const rotation = new THREE.Euler();
const quaternion = new THREE.Quaternion();
const scale = new THREE.Vector3();

Expand All @@ -107,11 +106,7 @@
position.y = Math.random() * 40 - 20;
position.z = Math.random() * 40 - 20;

rotation.x = Math.random() * 2 * Math.PI;
rotation.y = Math.random() * 2 * Math.PI;
rotation.z = Math.random() * 2 * Math.PI;

quaternion.setFromEuler( rotation );
quaternion.random();

scale.x = scale.y = scale.z = Math.random() * 1;

Expand Down

0 comments on commit 391c8ce

Please sign in to comment.