Skip to main content

WindFoliageBlit

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

Constructors​

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

Fields​

10 private and internal fields
MemberWhat it is
private static readonly int BendingCached shader property ID for _Bending.
private static readonly int Color1Cached shader property ID for _Color.
private static readonly int CutoffCached shader property ID for _Cutoff.
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 Rect1Cached shader property ID for _Rect.
private static readonly int SwayStrengthCached shader property ID for _SwayStrength.
private static readonly int TilingCached shader property ID for _Tiling.
private static readonly int UVMaxSwayCached shader property ID for _UVMaxSway.

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 with colour and cutoff (alpha test on) into the diffuse atlas, and gloss, sway strength, UV max sway and bending into the normal atlas.