Skip to content
Advertisement

Tag: lighting

How to find all mesh faces illuminated by a SpotLight?

I have a THREE.Mesh consisting of a THREE.BufferGeometry with “position” and “normal” THREE.BufferAttributes. The mesh is illuminated by a THREE.SpotLight (a cone-shaped light source). Is there a way to find all mesh faces illuminated by the cone? There are no other objects in the scene so I don’t need to worry about blocking. Answer A basic approach From a very

Advertisement