FontLoader()
FontLoader()는 Three.js에서 폰트 파일을 로드하여 3D 텍스트를 생성할 수 있게 해주는 로더입니다. 폰트 파일은 보통 JSON 형식으로 저장됩니다. Three.js의 typeface.js 예제에서 폰트 파일을 다운로드할 수 있습니다. 사용 예제는 아래와 같습니다.const loader = new THREE.FontLoader();loader.load('path/to/your/font.json', function (font) { // 폰트 로딩 후 텍스트 생성 const textGeometry = new THREE.TextGeometry('Hello, World!', { font: font, size: 80, height: 5, curveSegments: 12, ..
three.js
2025. 1. 8. 13:16