Answers for "threejs text"

0

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,  
  });
  ...
});
Posted by: Guest on May-24-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language