only set viewmatrix and activate shader once