Hirako2000 71b0c953de Fixes Text and adds a basic example for it - #288
Former-commit-id: e6973ece713f83f4fc07a9d4fe8d8f0c2e8fe2c4
2017-07-10 01:34:33 +07:00

31 lines
550 B
JavaScript

import * as UTILS from '../../globals';
const controlsModule = new WHS.OrbitControlsModule();
const app = new WHS.App([
...UTILS.appModules({
position: new THREE.Vector3(0, 10, 200)
}),
controlsModule
]);
const text = new WHS.Text({
text: 'Gentilis Bold Text',
parameters: {
font: `${process.assetsPath}/fonts/gentilis_bold.typeface.json`,
size: 20,
height: 5,
curveSegments: 6
},
material: new THREE.MeshBasicMaterial({
color: 0xffffff
}),
position: [-100, 0, 0]
}).addTo(app);
app.start();