Konlet Posted December 18, 2020 Share Posted December 18, 2020 Hi, I'm using the DisplacementFilter in Pixi.JS v5. I would like to understand exactly how displacement map images displace pixels. As they are normally grayscale, I'm wondering what the color value (0-255) denotes for a given pixel. If anyone can explain this to me or link an article explaining it, I would be very grateful. Thanks! Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 19, 2020 Share Posted December 19, 2020 red horizontal, green vertical, blue nothing. (r/255 -0.5) * scale. Yeah, there's no center because 128 and 127 are not 0.5 Konlet 1 Quote Link to comment Share on other sites More sharing options...
Konlet Posted December 19, 2020 Author Share Posted December 19, 2020 Thank you! You've been a big help. 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.