SkillAgentSearch skills...

VoxelVFX

Render MagicaVoxel vox files using the Unity VFX Graph

Install / Use

/learn @IxxyXR/VoxelVFX
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

  • MagicaVoxelUnity: https://github.com/darkfall/MagicaVoxelUnity
  • Keijiro's Low Poly Shapes: https://github.com/keijiro/LowPolyShapes (and for huge amounts of inspiration)
  • Sample vox files from: https://github.com/mikelovesrobots/mmmm
View on GitHub
GitHub Stars37
CategoryDevelopment
Updated4mo ago
Forks8

Languages

C#

Security Score

87/100

Audited on Dec 9, 2025

No findings