Skip to main content

CosmeticPacker.Input

A class in Root.Township, Alta.Customization.

One cosmetic part to pack into a character's combined mesh and texture, with its colours and blit materials.

Constructors​

MemberWhat it is
Input()Creates a CosmeticPacker.Input with default values.

Fields​

MemberWhat it is
protected static readonly int RectPropertyShader ID of the _Rect property set on the blit materials.

Properties​

MemberWhat it is
TwoColors Arguments { get; set; }The primary and secondary colours applied to the part.
CosmeticPacker.PartId CopyFrom { get; set; }Another part whose texture area and colours this one shares. A zero hash means none.
Material DiffuseBlit { get; set; }Material used to draw the part's colour texture into the packed texture.
bool IsAlphaBlending { get; set; }Whether the part goes in the transparent mesh.
bool IsOnHead { get; set; }Whether the part belongs to the head, kept separate in first person.
Material NormalBlit { get; set; }Material used to draw the part's normal map into the packed texture.
CosmeticPacker.PartId PartId { get; set; }Which cosmetic part this is.
Vector4 Rect { get; set; }Where the part sits in the packed texture.

Methods​

MemberWhat it is
virtual void Copy(CosmeticPacker.Input copyFrom)Takes the colours from another input.
virtual void SetupForBlit(Vector4 rect)Applies the colours and the target area to the blit materials.

Used in​

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