added new displacement functionality of 3d mode

not activated yet