SebLague / Procedural-Landmass-Generation

Procedural Landmass Generation in Unity
https://www.youtube.com/playlist?list=PLFt_AvWsXl0eBW2EiBtl_sxmDtSgZBxB3
MIT License
1.1k stars 596 forks source link

Why texture on plane is displayed as a mirror image of texture on mesh? #8

Open hankeyyh opened 7 years ago

hankeyyh commented 7 years ago

I'm following the E05, and i found that issue. It's not a big problem but i tried several ways still can't fix it. mirrorimage

Xavator commented 7 years ago

Go to the material being used by the preview MAP GameObject (not the Mesh one). Set the following: Tiling: X: -1 Y: 1 Offset: X: 1 Y: 0 For the "Mesh" GameObject, don't change the material tiling and offsets (defaults are Tiling (1,1) Offset (0,0)) Also, for future reference, the offset part only needs to be set because the TextureWrapMode of the texutre being used is set to TextureWrapMode.Clamp (see the TextureGenerator.TextureFromColourMap method).