mhkasif
1
i want to show light emerging from lighthouse but spotlight just showing to floor.
provided the current working of a project above.
want spotlight to behave like below
https://images.app.goo.gl/KK1qeE7yyhMB2UPU6
1 Like
drcmda
3
if you want to consider react this is a one-liner: Volumetric spotlight - CodeSandbox but otherwise you find the vanilla threejs shadermaterial here: drei/SpotLightMaterial.tsx at e3aafb0ffaa4c8a99927c0c0edd51950f87a4aab · pmndrs/drei · GitHub the technique is called “soft-particle” which avoid the visual glitches and makes it look pretty convincing.
mhkasif
4
can’t it be done with native Spotlight without any external library?
Could you let me know where can I find threex.volumetricspotlight.js file to use that repo?