Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.15 KB

README.md

File metadata and controls

31 lines (19 loc) · 1.15 KB

Voxel VFX

Example

Render MagicaVoxel .vox files with the Unity Visual Effect Graph

Requirements

Unity 2019.1 or later.

This project uses the HDRP as that's the only way to get lit meshes in the VFX graph at present.

Instructions

There are two VFX graphs and two example projects.

Volume: The simpler example. Converts each voxel into a pixel in a texture3D. This means even empty voxels are rendered (as transparent meshes)

Sprite: More efficient. The voxels are stored in a texture with rgb=xyx for position and the alpha channel storing an index into a separate pallette texture that provides the color information.

The latter scene file currently scans for files in the specified directory that match the given pattern. Check out the scene itself.

Credits