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

GLSL tile transitions #7

Closed nwpointer closed 1 year ago

nwpointer commented 2 years ago

Currently tile textures(rock, grass ect) just blend smoothly into one another. This is ok but requires large splat maps to make terrain look good and can look smudgy / low fidelity in certain cases.

It would be ideal if the respective texture weights were used as input to user supplied glsl that applied arbitrary shaping functions to the edges of terrain transitions

nwpointer commented 1 year ago

opted for predefined shaping functions, currently linear blend and noise blend are available