Skip to main content

Texture Instructions

A Texture Instruction is a step in the Baking process that adds a texture on top of the current Baked Texture. This texture is usually an EZRecolor Texture Mask with Color Replacement IDs assigned to it, but it can be anything you want. You can then place it properly with scale, rotation and offsets.

Texture Instructions
Properties of a Texture Instruction within a Baked Texture of a Baked Material

Fields

FieldType Description
Texture Baker LabelTextA Label to help with the readability of the Template, it doesn't display in the Baker window but could be used in other ways.
Use Past Baked Texture NameTextAllows to reuse a past baked texture without rebaking it and save on baking time. If a name is set, only the texture field will be ignored and the texture with this name will take its place. The selected baked texture with the corresponding name needs to be baked before this step runs.
TextureTexture2DThe Texture to use for this instruction.
Mask TextureTexture2DMask to mask out unused areas of the texture. Useful for fitting smaller textures on top of the baked texture. Needs to be the same resolution as the source texture!
Mask Uses AlphaBooleanIf this is on, the alpha channel of the mask will be used instead of the Red color channel to mask out the texture.
Fill Alpha With ColorBooleanIf this is on, the alpha channel of the mask will have its transparent parts filled in with the baked color. Useful to fix black edges around the transparent parts (which is ending up being the selected start color of the baked texture).
Override Attached Mesh GO NameTextSet the mesh GameObject and material slot to read for this specific texture. If no name is set or the slot is -1, these will be ignored.
Override Attached Mesg GO SlotIntSet the mesh GameObject and material slot to read for this specific texture. If no name is set or the slot is -1, these will be ignored.
Color ID RIntRed channel. Set to -1 or 0 if unsassigned. Valid EZRecolor Color Replacements start at 1.
Color ID GIntGreen channel. Set to -1 or 0 if unsassigned. Valid EZRecolor Color Replacements start at 1.
Color ID BIntBlue channel. Set to -1 or 0 if unsassigned. Valid EZRecolor Color Replacements start at 1.
Color ID AIntAlpha channel. Set to -1 or 0 if unsassigned. Valid EZRecolor Color Replacements start at 1.
Do Not Normalize HDR ColorsBooleanBy default, to ensure correct bake of emmisive textures using an HDR color tint, the colors of the textures are normalized so that the maximum color value is 1 and then the HDR tint field on the final material can be desaturized to give the final look. However, in some cases you might want this off. Example, baking an emissive texture using an HDR tint and assigning it to a shader property that doesn't have an HDR tint (like VRChat Mobile Toon Lit).
ResizeFloatScale of the texture. Keep at 1 for native resolution.
RotationFloatRotation of the texture. Currently supports 90, 180 and 270 degrees rotation (Clockwise). In the future, it could support non-90 degree rotations.
OffsetVector2Offset of the texture. Keep at [0,0] for original alignment. The alignment uses the bottom left corner of the texture.
Is Normalized OffsetBooleanIf true, the above offset will use 0-1 normalized values (e.g. the middle of a 1024x1024 texture would be 0.5). If false, it'll use pixel coordinates (e.g. the middle of a 1024x1024 texture would be 512).
Bake TypeEnumHow should this texture instruction be baked on top of the previous steps?

Overlay: Apply the texture like a sticker on top of the current bake
Additive: Add the colors of this texture with the colors of the bake behind it
Multiply: Multiply the colors of this texture with the colors of the bake behind it
Replace Everything: Replace all values of the bake (including transparency and including masked area) from the bake with this texture's.
Ignore TextureBooleanIgnore this texture step while baking. Useful for creators to debug custom templates.

Bake Types

Texture Instructions support a couple of Baking types, so here's a chart on how that works:

Texture Instruction Bake Types
Graphics on how each Bake Type works