- Home /
How to make colored voxels?!?
Well I'm confused... I'm still working on my voxel engine and now I decided that I don't want to have any Textures. Instead I'd like to have colored voxels. I can't use vertex colors because I'm already using them for ambient occlousion (shadows). So how would I do this? Could I use Mesh.Color for the shadows and Mesh.Color32 for the block color? Help would be great! Thanks
Wizz
Answer by Eric5h5 · Aug 12, 2013 at 08:39 PM
Use UV mapping, along with a texture that contains the colors you want to use (use point filtering for the texture so bilinear doesn't mess the colors up). Mesh.Color and Color32 are the same thing.
Thanks for your answer! Yes your probably right. I should stay with uv mapping. I could have a 1024x1024 Texture where every pixel is a diffrent color...