Fixes and optimizations to the displacement maps