threejs text code example
Example: threejs text
const loader = new THREE.FontLoader();
loader.load('../resources/threejs/fonts/helvetiker_regular.typeface.json', (font) => {
const text = 'three.js';
const geometry = new THREE.TextGeometry(text, {
font: font,
size: 5.2,
height: 4.9,
curveSegments: 4,
bevelEnabled: true,
bevelThickness: 0.15,
bevelSize: 0.3,
bevelSegments: 5,
});
...
});