Simple experimentations of terrain generation in Unity3D and MagicaVoxel to render voxels.
MIT License
This repository shows the way I've setup Unity3D to be able to create terrain generators and export them to VOX files.
Disclaimer : the code presented here is not optimized at all! This is just the first take on this subject I have been doing and requires several cycles of cleaning up.
Add the GeneratorScript
behaviour on any game object in Unity, plug it in any kind of mesh renderer
and it's good to go.
You can create your own generators by inheriting the AbstractGenerator
class and modifying a bit the GeneratorScript
to select and preview them.