Skip to main content

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.

Constructors​

MemberWhat it is
AtlasedMaterial()Creates an AtlasDefinition.AtlasedMaterial with default values.

Fields​

MemberWhat it is
int customPaddingPadding override for this material in the atlas; -1 means use the default.
Material materialThe original material that renderers use before atlasing.
Vector4 rectOffset and scale of this material's area in the atlas (x, y offset and z, w scale), written into mesh UVs.
Scale scaleHow much to scale this material's textures when packing (quarter, half, regular, two or four times).

Methods​

MemberWhat it is
override bool Equals(object obj)Compares the wrapped material against the given object, not against another AtlasedMaterial.
override int GetHashCode()Uses the wrapped material's hash code.

Used in​

Members of other types that take, return or hold a AtlasedMaterial: