react-msdf-text
Display text in WebGL using Multichannel Signed Distance Field text fonts using React and React-Three-Fiber
This project borrows heavily from Jam3's work on MSDF text in Three.js
Install
npm install --save react-msdf-text
Usage
import React Suspense from 'react'import Canvas from 'react-three-fiber'import Text from 'react-msdf-text' const App = return <Canvas = = // . . > <ambientLight /> <pointLight = /> <Suspense => <Text = = = = = ="blue" = = ="lightblue" = = /> </Suspense> </Canvas>
License
MIT © Shags