Added method for applying uniforms without gl calls.