AtlasDefinition.AtlasedMaterial
A class in Root.Township, Alta.Utilities.Atlas.
One source material inside an AtlasDefinition and where it sits in the baked texture atlas.
- Listed in Utilities and other Alta namespaces
- Nested in
AtlasDefinition
Constructors
| Member | What it is |
|---|---|
AtlasedMaterial() | Creates an AtlasDefinition.AtlasedMaterial with default values. |
Fields
| Member | What it is |
|---|---|
int customPadding | Padding override for this material in the atlas; -1 means use the default. |
Material material | The original material that renderers use before atlasing. |
Vector4 rect | Offset and scale of this material's area in the atlas (x, y offset and z, w scale), written into mesh UVs. |
Scale scale | How much to scale this material's textures when packing (quarter, half, regular, two or four times). |
Methods
Used in
Members of other types that take, return or hold a AtlasedMaterial: