Mapping Analog Data to Shift Register

This project is similar to what I want to achieve but it doesn't use a shift register.

Instead I want to use the analog input from an accelerometer and map it to control brightness of several LEDs via a 595, so all LEDs will brighten or dim dependent on the angle of tilt.