Publisher | ZannaDev |
---|---|
File size | 10.80MB |
Number of files | 28 |
Latest version | 1 |
Latest release date | 2022-07-25 09:03:16 |
First release date | 2022-07-05 10:02:11 |
Supported Unity versions | 2018.4.2 or higher |
While developing a game that creates procedural mesh from voxels, I found myself in the needs of applying textures that represented the voxel materials over the mesh. To do so, a simple triplanar projection based on mesh height wasn't enough, so I came up with the shader available in this package, that exploits UV channels to retrieve the data needed to blend different textures together.
Inside you’ll find:
- Three shaders and related materials that process the voxel data and render it in the form of textures or colours. One shader renders textures and normal maps, one only textures and the last one only vertex colours
- A script to visualize voxels as cubes
- Two Marching Cubes scripts ready to use out of the box, of which one is optimized to reduce vertex count (works only with vertex colours tho)
- A few scripts to setup the demo scenes
- A MeshCombiner script that can be used, also in other projects, to combine meshes that share the same material, reducing drawcalls
Warning: This asset requires Shader Graph package to be installed.