Page 1 of 1

Help with shaders [Solved]

Posted: Thu Dec 05, 2019 9:14 pm
by bobbymcbobface
Hi all - just need some help on how to use shaders specifically how to make a glow effect - thanks

Re: Help with shaders

Posted: Thu Dec 05, 2019 9:20 pm
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.

Re: Help with shaders

Posted: Fri Dec 06, 2019 5:06 pm
by bobbymcbobface
is there any moonshine shader examples you could supply me just so i can see how to use it in practice - thanks :)

Re: Help with shaders

Posted: Fri Dec 06, 2019 7:59 pm
by zorg

Re: Help with shaders

Posted: Fri Dec 06, 2019 8:55 pm
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