Renamed "rotateDir" to "blendDir". Also, added clamping to heightBlend.