Method CreateIndexMapFromOccurrences
CreateIndexMapFromOccurrences(OccurrenceList, int, bool)
Create an IndexMap and add an UVSet so that each mesh will have UVs refering to one different pixel of the index map and that pixel will have the value i for occurrences[i]. Warning: all occurrences will be singularized
Declaration
public uint CreateIndexMapFromOccurrences(OccurrenceList occurrences, int uvChannel, bool createTexture1D)
Parameters
Type | Name | Description |
---|---|---|
OccurrenceList | occurrences | |
int | uvChannel | |
bool | createTexture1D | If true, the texture will have a resolution of 1 x occurrences.size, else a square power of two image will be created to fit occurrences.size pixels |
Returns
Type | Description |
---|---|
uint |