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.
Simple glow shader
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- Gunroar:Cannon()
- Party member
- Posts: 1142
- Joined: Thu Dec 10, 2020 1:57 am
- EngineerSmith
- Prole
- Posts: 38
- Joined: Thu Dec 02, 2021 11:38 am
- Contact:
Re: Simple glow shader
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.
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.
- Gunroar:Cannon()
- Party member
- Posts: 1142
- Joined: Thu Dec 10, 2020 1:57 am
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 9 guests