Fixed render batch to set global parameters at draw time.