Help with shaders [Solved]
- bobbymcbobface
- Citizen
- Posts: 78
- Joined: Tue Jun 04, 2019 8:31 pm
Help with shaders [Solved]
Hi all - just need some help on how to use shaders specifically how to make a glow effect - thanks
Last edited by bobbymcbobface on Mon Dec 09, 2019 7:38 am, edited 1 time in total.
I make games that run on potatoes :P
Re: Help with shaders
You don't need shaders for this, you can accomplish such effect by drawing glow effect into sprites, or rendering glow sprites over normal sprites. If you insist on using shaders, you
1) take the base scene image and subtract some value fixed from all color components, multiply the remaining values as appropriate
2) apply blur to the resulting "brightmap texture"
3) render resulting "glow image" over original image
There are specific shaders for that in the "moonshine" pack.
1) take the base scene image and subtract some value fixed from all color components, multiply the remaining values as appropriate
2) apply blur to the resulting "brightmap texture"
3) render resulting "glow image" over original image
There are specific shaders for that in the "moonshine" pack.
- bobbymcbobface
- Citizen
- Posts: 78
- Joined: Tue Jun 04, 2019 8:31 pm
Re: Help with shaders
is there any moonshine shader examples you could supply me just so i can see how to use it in practice - thanks
I make games that run on potatoes :P
- zorg
- Party member
- Posts: 3470
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Help with shaders
<1 minute googling
https://github.com/vrld/moonshine
https://github.com/vrld/moonshine
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
- bobbymcbobface
- Citizen
- Posts: 78
- Joined: Tue Jun 04, 2019 8:31 pm
Re: Help with shaders
Ah thnx - I stumbled across an older wiki of that and (stupidly) assumed that was the only one out their
Sorry for the inconvenience :p
Sorry for the inconvenience :p
I make games that run on potatoes :P
Who is online
Users browsing this forum: No registered users and 8 guests