Added input clamping in MADD to fix skinning problems in BGDA.