mirror of
https://github.com/WhitestormJS/whs.js.git
synced 2026-01-18 16:03:24 +00:00
31 lines
550 B
JavaScript
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();
|