updated_at: 2025-02-27 17:20

TextureLoader

const texture = new THREE.TextureLoader().load( './assets/mytexture.jpg' );

const geometry = new THREE.SphereGeometry( 3, 32, 16 ); // radisu, widthSegments, heightSegment
const material = new THREE.MeshLambertMaterial( {  map: texture } ); // map parameter를 이용하여 texture를 전달
const sphere = new THREE.Mesh( geometry, material );
this.scene.add( sphere )

Table of contents 목차

평점을 남겨주세요
평점 : 2.5
총 투표수 : 1

질문 및 답글