Added depth value calculation.

Also fixed various syntactic issues.
Added alphaTex sampler.