Skip to main content

WindFoliageRampLerp3Blit

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

Constructors​

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

Fields​

13 private and internal fields
MemberWhat it is
private static readonly int BendingCached shader property ID for _Bending.
private static readonly int Color0Cached shader property ID for _Color0. Read from the material and written to the blit's _Color.
private static readonly int Color1Cached shader property ID for _Color.
private static readonly int Color1PositionCached shader property ID for _Color1Position.
private static readonly int Color2Cached shader property ID for _Color1.
private static readonly int Color3Cached shader property ID for _Color2.
private static readonly int GlossinessCached shader property ID for _Glossiness.
private static readonly int InteriorRectCached shader property ID for _InteriorRect.
private static readonly int MetallicCached shader property ID for _Metallic.
private static readonly int Rect1Cached shader property ID for _Rect.
private static readonly int SamplerCached shader property ID for _Sampler.
private static readonly int SwayStrengthCached shader property ID for _SwayStrength.
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 _Sampler texture with three ramp colours into the diffuse atlas, and sway strength and bending (no gloss or metal) into the normal atlas. Throws if _Sampler is missing.