Skip to main content

SimpleStandardBlit

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/Cheap/SimpleStandard shader. AtlasDefinition uses it when it bakes texture atlases.

Constructors​

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

Fields​

14 private and internal fields
MemberWhat it is
private static readonly int BumpMapCached shader property ID for _BumpMap.
private static readonly int BumpScaleCached shader property ID for _BumpScale.
private static readonly int Color1Cached shader property ID for _Color.
private static readonly int CutoffCached shader property ID for _Cutoff.
private static readonly int DiffuseTexCached shader property ID for _DiffuseTex.
private static readonly int EmissionColorCached shader property ID for _EmissionColor.
private static readonly int EmissionMapCached shader property ID for _EmissionMap.
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 MetallicCached shader property ID for _Metallic.
private static readonly int MetallicGlossMapCached shader property ID for _MetallicGlossMap.
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 (white if missing) with colour and cutoff into the diffuse atlas, bump and metallic gloss maps into the normal atlas, and the emission map if asked. Copies the alpha test and metallic keywords.