The UV is for when the mesh has more than one UV set. For example if the mesh has texcoord 0 for a lightmap, texcoord 1 for some arbitrary data, and texcoord 2 for the diffuse map; then you use uv : 2. The max value is 7 (inclusive)GlowingPotato wrote:The "UV" means that i can pass another diffuse map to the object if my object have another texture channel/UV set ? If true, how many UV sets can i have?
Note however, if a mesh doesn't have that UV set, trying to apply that material to that mesh will raise an exception.
If you want multiple diffuse maps on top of each other, then that's what the detail_maps are for. You can have up to 5 diffuse maps (diffuse + 4 detail maps). Each detail map can be assigned to a different UV set.