nwpointer / three-landscape

React-three-fiber compatible abstractions that make it easier to render high quality landscapes scenes

Home Page:https://three-landscape.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Infinite mirror grid

nwpointer opened this issue · comments

helper to tile a terrain sector in an grid, using mirroring to avoid sharp edged between sectors.

usefull for faking infinite terrain in self similar environments (mountains, sand dunes etc)

proposal:

      <SplatMaterial
        splats={[textures[11], textures[12]]}
        surfaces={[rock, clif, mud, grass1, grass2, mud]}
        orientation={[-1,1]}
      />

orientation is multiplied with uv whenever referenced to effectively flip x and or y sampling direction