add qualifier to get frag shader work on newer driver; improve shadow merging