Author Topic: Gaussian Blur shader effect  (Read 579 times)

ArcadeBliss

  • Sr. Member
  • ****
  • Posts: 194
    • View Profile
Gaussian Blur shader effect
« on: May 10, 2016, 02:15:07 AM »
I am trying to do a gaussian blur effect that requires to run the shader twice on the resulting image. Does anyone have a clue how to place the resulting image of an fe.image object that has a shader into another fe.image inorder to run the other shader against it?

liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 436
    • View Profile
Re: Gaussian Blur shader effect
« Reply #1 on: May 10, 2016, 03:31:24 PM »
I'm not the best to explain shaders.. ideally the shader would run two passes i think or you would combine two separate shaders into one - but that's too complicated for me :)

Have you tried just doing the first shader on the image, then adding image to a surface and applying the second to the surface? I'm not sure if that would give the same effect, though.

ArcadeBliss

  • Sr. Member
  • ****
  • Posts: 194
    • View Profile
Re: Gaussian Blur shader effect
« Reply #2 on: May 10, 2016, 09:04:59 PM »
I'll give that a try.  Good idea.

ArcadeBliss

  • Sr. Member
  • ****
  • Posts: 194
    • View Profile
Re: Gaussian Blur shader effect
« Reply #3 on: May 11, 2016, 03:04:43 AM »
it worked!

I created a surface and gave it a shader.
I created an fe.image in the surface and gave it a shader.

after that it worked like a charm!