renamed shader variables to better reflect the direction of data flow