Simple glow shader

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Gunroar:Cannon()
Party member
Posts: 1142
Joined: Thu Dec 10, 2020 1:57 am

Simple glow shader

Post by Gunroar:Cannon() »

I can't do one :(

I'm looking for a simple glow shader (to make my bullets look...cooler?) that can preferably work on android shaders too.The examples I browsed just made the image white with no glow feel.
The risk I took was calculated,
but man, am I bad at math.

-How to be saved and born again :huh:
User avatar
EngineerSmith
Prole
Posts: 38
Joined: Thu Dec 02, 2021 11:38 am
Contact:

Re: Simple glow shader

Post by EngineerSmith »

It might be better to just improve your base image; especially as you're targeting android. Doing multiple passes isn't something mobile GPUs can usually handle very well.

Generally to get a better "glow" you'd sample a lot more and a lot further to get a better result. You can then add a gradient to the colour based on how strong of a glow it current is at, e.g. if you're doing 16 samples (2 in each direction spaced outward), you can add a gradient based on how many come back positive. 0-5 dark orange, 6-9 orange, 10-13 light orange, 14-16 white and see how that looks till you get something you like.
User avatar
Gunroar:Cannon()
Party member
Posts: 1142
Joined: Thu Dec 10, 2020 1:57 am

Re: Simple glow shader

Post by Gunroar:Cannon() »

:?
The risk I took was calculated,
but man, am I bad at math.

-How to be saved and born again :huh:
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 9 guests