Skip to content
Discussion options

You must be logged in to vote

Yes, as it's not a part of the three namespace, you can import the module from examples and extend it.

import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry'
import { extend } from '@react-three/fiber'

extend({ TextGeometry })

return <textGeometry args={[ ... ]} />

See:

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@pgodman
Comment options

@da-saman
Comment options

@JoaquinSantarcangelo
Comment options

@AlulaLeak
Comment options

@christopherjbaker
Comment options

Answer selected by joshuaellis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
10 participants
Converted from issue

This discussion was converted from issue #1739 on October 15, 2021 06:55.