Skip to content

Commit

Permalink
Merge branch 'HEAD' of https://dirkarnez:ghp_s5qNRX2l0RWFJlwTbYf2i8T5…
Browse files Browse the repository at this point in the history
[email protected]/dirkarnez/polyuworld-addon-chemistry-lab
  • Loading branch information
dirkarnez committed Aug 22, 2024
2 parents 28bdcdc + eda0285 commit 93faf0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
polyuworld-addon-chemistrylab
=============================
polyuworld-addon-chemistry-lab
==============================
### Terrain
- [Coding Challenge 11: 3D Terrain Generation with Perlin Noise in Processing - YouTube](https://www.youtube.com/watch?v=IKB1hWWedMk)
- https://github.com/mrdoob/three.js/blob/master/examples/webgl_loader_stl.html
Expand Down
6 changes: 3 additions & 3 deletions src/my-prefab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ END NONE 43
color.g = colors.getY( i );
color.b = colors.getZ( i );

const material = new THREE.MeshPhongMaterial( { color: color } );
const material = new THREE.MeshBasicMaterial( { color: color } );

const object = new THREE.Mesh( sphereGeometry, material );
object.position.copy( position );
Expand Down Expand Up @@ -141,7 +141,7 @@ END NONE 43
start.multiplyScalar( 1 );
end.multiplyScalar( 1 );

const object = new THREE.Mesh( boxGeometry, new THREE.MeshPhongMaterial( { color: 0xffffff } ) );
const object = new THREE.Mesh( boxGeometry, new THREE.MeshBasicMaterial( { color: 0xffffff } ) );
object.position.copy( start );
object.position.lerp( end, 0.5 );
object.scale.set(0.06, 0.06, start.distanceTo( end ) );
Expand Down Expand Up @@ -185,4 +185,4 @@ END NONE 43
hoverableVisuals
/>
)
};
};

0 comments on commit 93faf0a

Please sign in to comment.