//...
// SCENE
const scene = new THREE.Scene();
// TEXTURES
// ...
const venusTexture = loader.load("assets/venus.jpg");
const earthTexture = loader.load("assets/earth.jpg");
// MATERIALS
// ...
const venusMaterial = new THREE.MeshStandardMaterial({ map: venusTexture });
const earthMaterial = new THREE.MeshStandardMaterial({ map: earthTexture});
// MESHES
//...
const venusMesh = new THREE.Mesh(geometry, venusMaterial);
venusMesh.position.set(28, 0, 0);
venusMesh.scale.setScalar(0.9);
scene.add(venusMesh);
const earthMesh = new THREE.Mesh(geometry, earthMaterial);
earthMesh.position.set(31, 0, 0);
earthMesh.scale.setScalar(1);
scene.add(earthMesh);
// LIGHTING
//...
view raw block8.js hosted with ❤ by GitHub