seagull Posted February 6, 2019 Share Posted February 6, 2019 I'm working on a website, that has images that will use displacement filters for some interactivity. As soon as I add them to my container, the images get blurry, even though I've got the filters scaled to 0. I'm on a MacBook Pro (Retina). Here's a CodePen of the issue: https://codepen.io/elegantseagulls/pen/NowKgG?editors=0010 commenting out line 79 will show the higher resolution images. Any thoughts on this? Am I missing something? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 6, 2019 Share Posted February 6, 2019 In pixi-v4 filter resolution is not derived from renderer resolution those are 2 ways to set resolution for a filter. // Before you create any filters. PIXI.settings.FILTER_RESOLUTION = 2; //when you create filter filter.resolution = 2; Quote Link to comment Share on other sites More sharing options...
seagull Posted February 7, 2019 Author Share Posted February 7, 2019 @ivan.popelyshev You are a hero! Thank you so much! 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.