/transvoxel-unity

Transvoxel implementation with Unity's Job System and Burst compiler

Primary LanguageC#MIT LicenseMIT

transvoxel-unity

transvoxel-unity is a procedural voxel terrain generator for Unity using the Job System and Burst.

The tool is made for academic and demonstration purposes and is in no way considered production ready.

Requirements

  • Unity 2022.3.5 or newer.
  • Universal Render Pipeline

Installation

  • Create a new folder inside the 'Packages' folder in your Unity Project root
  • Download the project and copy it inside the new folder

Alternatively, you can install the package as a submodule by running the git command inside your project repository:

git submodule add https://github.com/bbQsauce5/transvoxel-unity.git Packages/TransvoxelUnity

System features:

  • Fast Transvoxel implementation using Unity's Job System and Burst Compiler
  • Source code is entirely written in C#
  • Chunking and dynamic level of detail using an octree for far view distances
  • "Unlimited" blending between textures using texture arrays and triplanar shading
  • Collider generation inside jobs off the main thread

worldgen 2023-08-20 22-53-47 2023-08-20 23-06-29

Future work

  • Terrain editing
  • Decorations and foliage generation
  • Infinite terrain generation

Acknowledgements

License

MIT