add uniform function to shader which sets a uniform for it. only a few important uniform types can be set for now