minor shader optimizations