threejs text

Solutions on MaxInterview for threejs text by the best coders in the world

showing results for - "threejs text"
Maya
25 Oct 2019
1const loader = new THREE.FontLoader();
2
3loader.load('../resources/threejs/fonts/helvetiker_regular.typeface.json', (font) => {
4  const text = 'three.js';  
5  const geometry = new THREE.TextGeometry(text, {
6    font: font,
7    size:  5.2,  
8    height:  4.9,  
9    curveSegments:  4,  
10    bevelEnabled: true,  
11    bevelThickness: 0.15,  
12    bevelSize: 0.3,  
13    bevelSegments: 5,  
14  });
15  ...
16});