Skip to main content

MetalNonForgingBlit

A internal class in Root.Township, Alta.Utilities.Atlas. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Internal atlas blitter for the Township Tale/MetalNonForging, Custom/Metal and Township Tale/StaticMetal shader. AtlasDefinition uses it when it bakes texture atlases.

Constructors​

MemberWhat it is
MetalNonForgingBlit()Creates a MetalNonForgingBlit with default values.

Fields​

9 private and internal fields
MemberWhat it is
private static readonly int BumpMapCached shader property ID for _BumpMap.
private static readonly int ColorACached shader property ID for _ColorA.
private static readonly int ColorBCached shader property ID for _ColorB.
private static readonly int GlossinessCached shader property ID for _Glossiness.
private static readonly int InteriorRectCached shader property ID for _InteriorRect.
private static readonly int MainTexCached shader property ID for _MainTex.
private static readonly int MetallicStrengthCached shader property ID for _MetallicStrength.
private static readonly int Rect1Cached shader property ID for _Rect.
private static readonly int TilingCached shader property ID for _Tiling.

Methods​

MemberWhat it is
override void Blit(bool rendersEmission, RenderTexture diffuseRT, RenderTexture normalRT, RenderTexture emissionRT, Texture2D defaultWhiteTexture, Texture2D defaultNormal, Texture2D defaultEmission, Vector4 rect, Vector4 interiorRect, Material material, Material diffuseBlit, Material normalBlit, Material emissionBlit)Draws the main texture tinted by _ColorA and _ColorB into the diffuse atlas, and gloss and metallic strength into the normal atlas. Throws if there is no main texture.