So, I am trying to procedurally create my game world.
For the beginning I started simple and just wanted to generate and texture a simple quad.
To see whether I am doing the generation correctly, I also placed a quad using the Unity editor.
I applied the same material to both (again, for the editor-created one in the editor and for the generated one via script).
However, contrary to my expectation the two quads did not match completely.
They are quite similar but, the colors are slightly off.
Furthermore, it seems like the light/reflections would come from the wrong direction for the script/runtime created one.
Note, all the vertex, triangle and uv data matches, they also use the same material, hence the same settings and shader are applied to both of them.
So, I am wondering whether someone knows what the reason für this difference could be.
Could it have something to do with pre-generated lightmaps?
Here is a screenshot that illustrates the problem - the left quad is the script generated one:
Here is a screenshot with a second editor placed quad (instead of the left, script-generated one) - to also illustrate that the material/texture actually is tileable: