How would I go about making a flashlight effect in Love2D?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
How would I go about making a flashlight effect in Love2D?
I searched for forum posts relating to the subject and I found a user example of this however the love file doesn't seem to be working. I heard that it involves the use of shaders however I want to keep my project as simple as possible.
Re: How would I go about making a flashlight effect in Love2D?
I attached a simple example that works without shaders.
Thanks to SD.Chatane for the image (licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)).
Thanks to SD.Chatane for the image (licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)).
- Attachments
-
- flashlight_example.love
- (510.3 KiB) Downloaded 74 times
Re: How would I go about making a flashlight effect in Love2D?
Somewhat but not really, I mean like a triangular ray that spreads out that illuminates the scenery
Re: How would I go about making a flashlight effect in Love2D?
Oh yeah that's very useful! it's basically what I am looking forXugro wrote: ↑Sun Aug 13, 2023 8:20 pm I attached a simple example that works without shaders.
Thanks to SD.Chatane for the image (licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)).
Re: How would I go about making a flashlight effect in Love2D?
This looks the same as Xugro's light but using stencils:
- Attachments
-
- stencil_light.love
- (1.03 KiB) Downloaded 70 times
Who is online
Users browsing this forum: Azzla, Google [Bot] and 1 guest