Materials
Guide on how to use materials, textures, vertex colors and shaders.
Last updated
Guide on how to use materials, textures, vertex colors and shaders.
Last updated
Voxel Renderer includes two ready-to-use shaders that work with both URP and HDRP.
Voxel Lit is a shader that supports lighting.
Voxel Unlit is a shader that doesn't support lighting.
If you're creating your own shaders, you can look up how the built-in shaders work at VoxelRenderer/Runtime/Shaders.
Voxel Type's inspector displays different fields depending on the assigned material's Surface Color property.
To use vertex colors (default), set the material's Surface Color property to Vertex Colors.
To use textures, set the material's Surface Color property to Texture Array.
Voxel Renderer automatically determines whether Voxel Type(s) assigned to a Voxel Renderer component use vertex colors, textures, or both. If only one Surface Type is used (e.g., textures only), the other one is omitted, decreasing the overall size of the mesh.