Help with shaders [Solved]

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
bobbymcbobface
Citizen
Posts: 78
Joined: Tue Jun 04, 2019 8:31 pm

Help with shaders [Solved]

Post by bobbymcbobface »

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
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Help with shaders

Post by raidho36 »

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.
User avatar
bobbymcbobface
Citizen
Posts: 78
Joined: Tue Jun 04, 2019 8:31 pm

Re: Help with shaders

Post by bobbymcbobface »

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
User avatar
zorg
Party member
Posts: 3436
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Help with shaders

Post by zorg »

Me and my stuff :3True 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.
User avatar
bobbymcbobface
Citizen
Posts: 78
Joined: Tue Jun 04, 2019 8:31 pm

Re: Help with shaders

Post by bobbymcbobface »

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
I make games that run on potatoes :P
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 43 guests