Reputation: 540
I've browsed the source of three.js and I haven't seen any file related to SVG. I've only found CanvasRenderer and WebGLRenderer. So what about SVG ? I thought it was supported.
Upvotes: 4
Views: 6367
Reputation: 104833
SVGRenderer
is not part of the library -- it is part of the examples.
SVGRenderer
can be found in the examples/js/renderers/
directory.
If you are rendering with WebGLRenderer
, use SVGLoader
to load .svg
files. SVGLoader
is located in the examples/js/loaders/
directory.
For demos, see https://threejs.org/examples/?q=svg
three.js r.99
Upvotes: 8