Graphics Reference
In-Depth Information
Note
There is one thing you need to take into account when working with
THREE.TextGeometry and materials. As you can see from the code snippet,
we add two material objects instead of one. The first material is applied to the
front of rendered text, and the second one is applied to the side of the rendered
text. If you just pass in one material, it is applied to both the front and the side.
How it works...
As mentioned, there is a variety of different parameters:
Parameter
Description
The height property defines the depth of the text, in other
words, how far the text is extruded to make it 3D.
height
With this property, you set the size of the final text.
size
If a character has curves (for example, the letter a ), this prop-
erty defines how smooth the curves will be.
curveSegments
A bevel provides a smooth transition from the front of the text
to the side. If you set this value to true, a bevel will be added
to the rendered text.
bevelEnabled
bevelThickness If you've set bevelEnabled to true , it defines how deep
the bevel is.
Search WWH ::




Custom Search