Skip to main content
100%

three.js webgl - simple text from json

✓ Published0🌍 Public
LLaurens
Last edited Apr 13, 2020
Created on Apr 13, 2020
Forked from HTML Starter

This example renders the text "Three.js\nStroke text." as 3D geometry in a WebGL scene using Three.js. A `FontLoader` loads a typeface JSON file containing glyph outlines, from which `generateShapes` creates filled shapes with semi-transparent material and stroked outlines with darker material. The scene includes an `OrbitControls` camera for interactive rotation and a light gray background. The rendering highlights both the filled and stroked paths of each character.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes