fix adaptive grid shader (distance variable)
Merge branch 'master' of https://github.com/hpicgs/cg2sandbox