Gaussian blur Shader
(Based on code from http://xorshaders.weebly.com/tutorials.)
1 param - Intensity.
Tested/working in Firefox and Node-webkit preview.
fx files and demo-
https://dl.dropboxusercontent.com/u/22173473/Gaussiandropbox.rar
Thanks for this!
I dont understand why, but i copied the fx files to the effects folder.
But when i open the capx im notified the effects are not installed.
Any idea why?
Thanks for sharing! chrisbrobs
Savvy001
'I dont understand why, but i copied the fx files to the effects folder.
Any idea why?'
Not sure why this would happen...try creating an new project and adding the effect your sprite object.
I have but the effect wont show in the effects menu.
I just tried it and can confirm that everything is working as advertised on my end.
Develop games in your browser. Powerful, performant & highly capable.
This is a picture from my c2 folder.
So i dont know why it is not showing the effect when i try to add it in C2.
Try renaming the effect and see if it works?
You will have to change the xlm file to match!
Nope, strange.. but i'l leave it here for now.
Hope to get it working in the future.
As purplemonkey said it works on his pc, so its probably just a glitch in mine.
Thanks for the help!
Nope, strange.. but i'l leave it here for now. Hope to get it working in the future. As purplemonkey said it works on his pc, so its probably just a glitch in mine. Thanks for the help!
"Have you tried rebooting, Sir?"
> Nope, strange.. but i'l leave it here for now. > Hope to get it working in the future. > As purplemonkey said it works on his pc, so its probably just a glitch in mine. > Thanks for the help! > "Have you tried rebooting, Sir?"
> Nope, strange.. but i'l leave it here for now.
> Hope to get it working in the future.
> As purplemonkey said it works on his pc, so its probably just a glitch in mine.
> Thanks for the help!
>
Yep still no good.
But thanks for the tip
Thanks for sharing!
thanks it work perfect for me. Just one little problem it makes my game slower at the beggining
CNSDESIGN
You could try doing the blur in 2 passes (using the 2 effects shipped with C2 - Horizontal then Vertical)
Might be less intensive?
Or try reducing with the 2 param values in my effect (line 10 and 11)
10. const float blursamples = 4.0;
11. const float directions = 16.0;
Experiment!