Skip to content

A procedural quadtree terrain implementation in unity.

License

Notifications You must be signed in to change notification settings

1polygon/quadtree-terrain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A procedural quadtree terrain implementation in unity. It generates a heightmap using FastNoiseLite and calculates the vertex offsets and normals in the TerrainShader.

alt text

For the lod transitions all 16 possible grid meshes are being generated by skipping odd vertices on the edges if needed. The quadtree is being traversed down based on the camera distance until a minimum size is reached. Terrain meshes are being scaled based on the current tree node size and will be replaced accordingly if a lod seam changes.

alt text

About

A procedural quadtree terrain implementation in unity.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published