Manually fix shader for DHR.

This is shadow related.
Fixed texture2d use, and all warnings.