Fixed some bugs in the shader preventing compilation on the Nexus 7