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

SRGBTextures function throws error when. missing one of the expected fields #25

Closed nwpointer closed 1 year ago

nwpointer commented 1 year ago

the following fields should be made optional: props.displacementMap, ...surfaceTextures, props.normalMap

reported by @kenjinp:

https://github.com/nwpointer/three-landscape/blob/main/package/src/components/TerrainMaterial.tsx#L123 this guy is erroring out... srgbTexture, t is undefined