Skip to content

Commit

Permalink
up leaves & leaves mesh, nearplane changed to 200
Browse files Browse the repository at this point in the history
  • Loading branch information
GanyuHail committed Oct 22, 2024
1 parent fd21066 commit 1143f38
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ let selectedObject = null;
windowHalfX = WIDTH / 2;
windowHalfY = HEIGHT / 2;

fieldOfView = 150; // was 75
fieldOfView = 120; // was 75
aspectRatio = WIDTH / HEIGHT;
nearPlane = 20;
nearPlane = 200; // was 20
farPlane = 3000;

cameraZ = farPlane / 2;
Expand Down Expand Up @@ -109,6 +109,14 @@ let selectedObject = null;
scene.add(sphereMesh8);
sphereMesh8.position.set(0, 0, -100);


const sphereGeometry9 = new THREE.SphereGeometry(120, 64, 32);
const sphereTex9 = new THREE.TextureLoader().load('https://raw.githubusercontent.com/GanyuHail/port4/main/src/lines.png');
const sphereMaterial9 = new THREE.MeshStandardMaterial({ map: sphereTex9 });
const sphereMesh9 = new THREE.Mesh(sphereGeometry9, sphereMaterial9);
scene.add(sphereMesh9);
sphereMesh9.position.set(0, -100, -100);

for (i = 0; i < particleCount; i++) {

var vertex = new THREE.Vector3();
Expand Down
Binary file added src/leaves.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1143f38

Please sign in to comment.