How to use the TextBufferGeometry function from three

Find comprehensive JavaScript three.TextBufferGeometry code examples handpicked from public code repositorys.

37
38
39
40
41
42
43
44
45
46
  size: 300,
  height: 0,
  curveSegments: 1,
};
const baseGeometries = [
  new THREE.TextBufferGeometry('HELLO', optTextGeometry),
  new THREE.TextBufferGeometry('WORLD', optTextGeometry),
];
const geometry = new THREE.BufferGeometry();
let maxCount = 0;
fork icon260
star icon0
watch icon2

+ 3 other calls in file

61
62
63
64
65
66
67
68
69
70
export const createLabel = (text, position) => {
        // 暂时不用loader,因为地址本地不好弄
        // var loader = new THREE.FontLoader();
        // 这里模拟loader后的数据
        let font = new THREE.Font(fontData, true);
        let geometry = new THREE.TextBufferGeometry(text, {
                font: font,
                size: 0.5,
                height: 0.01,
                curveSegments: 1
fork icon0
star icon0
watch icon1

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)