spatial mapping with realworld texturing hololens 2

For a project I’m trying to texturise the spatial mapping of the hololens 2 with photographes.

I found a pretty good project witch made exactly what I want the problem is that is a Unity 5.6 / Holotoolkit project and I use Unity 2018.4 / MRTK 2.6

So, I’m trying to translate the project.

This is the original work

And what I’v done so far

For now, my problem is the texture that the project seems to merge each time I take a photo. I don’t know if the problem came from the shader, the code witch pass the Texture2DArray to the shader, or the merge when I take the photo.