- Shaders for MagicaVoxel
- Tested with MagicaVoxel 0.99.1a for Windows
MagicaVoxel shader is a processor of vox model object. Installed MagicaVoxel shader can be used from the Console in MagicaVoxel.
Install the shader by copying the file from the 📁shader directory in this project into the 📁shader directory of your MagicaVoxel installation.
- 🗎
blur.txt: Shader file of the Groupable Blur - Will assist you:
- To make a gradient.
- To add an antialiasing effect.
- To add a rounded corner effect.
- Keeps it shape:
- Empty voxel to empty voxel
- Valid voxel to valid voxel
- Palette can group:
- Each group will not blur into each other.
- Colors in the same group only will blur.
- Shader can only access voxels:
- Needs preparation of a proper palette you want.
- xs blur
color group stridecenter weight biascolor group stride: [1…256] (default:1)center weight bias: [-1…256] (default:0)
- Empty voxels (color index:
0) are grouped into-1. - Other valid voxels (color index:
1…255) are grouped into0+.
- xs blur 8
- Palette grasped
8tones ×32groups - Each row on the palette UI is an independent group
- Palette grasped
- xs blur 256
- Palette grasped
256tones ×1group - For a grayscale-like palette (255 tone levels + 1 empty)
- Palette grasped
- xs blur 8 4
- A bit large
center weight bias=4will work as an antialiasing effect / a rounded corner effect.
- A bit large
- xs -n 3 blur 8
- In the following sample, by one time run, the original model will become into the result of step 3.
blur-sample.vox: A sample vox file for the Groupable Bluroriginal➡🔨xs blur 8➡step 1➡🔨xs blur 8➡step 2➡🔨xs blur 8➡step 3
![]() original |
![]() step 1 |
![]() step 2 |
![]() step 3 |



