autoshader:undefined variable "tot_diffuse" (w/ light ramps)

This issue is now in the bug tracker:

bugs.launchpad.net/panda3d/+bug/1219422

along with a minimal patch that fixes the problem, along the lines of what rdb suggested here.