oskanberg Posted April 19, 2017 Share Posted April 19, 2017 Hello, I am using a DisplacementFilter to create a water ripple effect (the source & maps kindly borrowed from some other posts on this forum). I would like to be able to have the ripples 'fade' out, i.e. reduce the intensity/magnitude of the displacement. The only way I can think of doing this is by slowly reducing the intensity of the colour in the displacement map (reducing the saturation?), and replacing the filter with the new sprite. Is there a cleaner/easier way of achieving this? This is a snippet of the code I am using: http://jsfiddle.net/fgm6c2j5/3/ Thanks for your help. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 19, 2017 Share Posted April 19, 2017 displacement filter has a point "filter.scale", you can adjust it , like "filter.scale.set(10)", its 20 by default Quote Link to comment Share on other sites More sharing options...
oskanberg Posted April 20, 2017 Author Share Posted April 20, 2017 Perfect! Thank you for your help. I had overlooked that because I figured scale was referring to the size of the filter, like it does with sprites. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.