d13 Posted June 7, 2014 Share Posted June 7, 2014 Hello! Can anyone tell me if there's a difference between Pixi's `DisplacementFilter` and the `NormalMapFilter`?Their descriptions and properties in the API doc are identical. Quote Link to comment Share on other sites More sharing options...
tetrarkon Posted June 11, 2014 Share Posted June 11, 2014 I'm not sure about the exact differences in pixi's implementation (I haven't used filters yet), but displacement effects simulate refraction (like how things look distorted when looked at through water) while normal maps simulate "bumps" in a surface's texture in order to make it look more realistic. Looking at pixi's source code, it seems that NormalMapFilter is also a displacement map filter, but which also takes a light position as a parameter and performs bump mapping based on that light position. d13 1 Quote Link to comment Share on other sites More sharing options...
d13 Posted June 11, 2014 Author Share Posted June 11, 2014 Thanks for explaining that!Maybe it's still experimental. That's also an `AlphaMaskFilter` that's undocumented. 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.