I have an image that’s a single color, and so I just made it 1 pixel. I have “Generate mip maps” checked, but when I try to add it as a Terrain texture, it gives me a warning saying “Texture must have mip maps”.
Any idea what’s wrong? I tried changing the size to one of the compression ones (32, 64, etc.) but it keeps giving me that warning. Is there a specific size at which mip maps actually start being used?
It’s simple.
You can’t generate Mip Maps from a 1x1 texture because… well it can’t be downsized.
The Compression is only a way to downscale the texture during build time. (Note that it might not work with software native format like PSD.)
The usual rule is to have textures of 32x32 as a minimum when mipmaps are involved. When you have the mipmaps active, it allow Unity to generate down-scaled version of the texture that are automatically replacing the normal full version when display over a distance. The default terrain automatically does the adjustment of each “tiles” of the texture based on the distance from the rendered. Even if your texture is 1 color, as it’s “made” like that, it has to be able to divide the texture into smaller chunks. So, having a 32x32 texture with mipmap will generate a 4x4, 8x8, 16x16 version of the 32x32 textures for each set of “distances”.
1 Like