update stencil texture.