nwpointer / three-landscape

React-three-fiber compatible abstractions that make it easier to render high quality landscapes scenes
https://three-landscape.vercel.app
MIT License
138 stars 19 forks source link

Consider accepting arbitrary shader materials api #17

Closed nwpointer closed 1 year ago

nwpointer commented 2 years ago

Would be cool if you could provide arbitrary material shaders to be associated with each splat channel instead of predefined textures.

nwpointer commented 2 years ago
<mesh position={[0, 0, 0]} rotation={[-Math.PI / 2, 0, 0]}>
      <planeBufferGeometry args={[100, 100, width, height]} />
      <SplatStandardMaterial
        splats={[splat1, splat2]}
        materials={[grassMaterial, rockMaterial,...]}
        scale={[128 / 4, 128 / 2, 128, 128 * 2, 128, 128, 10]}
        noise={noise}
        displacementMap={displacement}
        displacementScale={10}
        displacementBias={-10}
      />
    </mesh>
nwpointer commented 1 year ago

will not be making it into the next major version so closing for now