Hello, if I use three.js or react three fiber to load an SVG containing paths that have 0 background (say ‘hollow’ parts, as well as paths with background fill color) and place a light source behind it in 3d environment, will the light rays “shine through” those empty areas of the SVG? Would it still appear ‘realistic’ not glitchy even if I animate the light source (say intensity or position). Thanks in advance
1 Like
I think so. give it a shot!
yeah the SVGloader converts the svg paths into a triangle mesh ,so if that shape/mesh with a hole casts shadows , you should the hole in the shadows too.
but if you want actual visible " rays " of light then you’ll have to do something like
webgl_postprocessing_godrays
or
pmndrs postrocessing demo/#god-rays
1 Like