3d Flashlight

I’m working on a 3d game using the raycasting extension and I’m planning on adding a first person flashlight. Any ideas? So far, the closest thing I have to an actual flashlight would be using the lantern extension, but for some reason the lantern effect doesn’t look the same as it used to on my old 3d game with a flashlight. Can anyone help on making one?

What about a UI that looks like a lantern with an animation.

You might want to try this and edit the code