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

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

nwpointer opened this issue · comments

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