Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jcponce committed Aug 22, 2024
1 parent 7267701 commit eddc4a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions threejs/galaxy/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function initializeScene() {
* Galaxy
*/
const parameters = {}
parameters.count = 200000
parameters.count = 300000
parameters.size = 0.005
parameters.radius = 10
parameters.branches = 5
Expand Down Expand Up @@ -139,7 +139,7 @@ function initializeScene() {
const sphere = new THREE.Mesh(sphereGeometry, sphereMaterial);
scene.add(sphere);

gui.add(parameters, 'count').min(100).max(200000).step(100).onFinishChange(generateGalaxy)
gui.add(parameters, 'count').min(100).max(500000).step(100).onFinishChange(generateGalaxy)
gui.add(parameters, 'radius').min(0.01).max(20).step(0.01).onFinishChange(generateGalaxy)
gui.add(parameters, 'branches').min(2).max(20).step(1).onFinishChange(generateGalaxy)
gui.add(parameters, 'randomness').min(0).max(2).step(0.001).onFinishChange(generateGalaxy)
Expand Down

0 comments on commit eddc4a7

Please sign in to comment.