Skip to main content

RampLerp_CosmeticTestBlit

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

Constructors​

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

Fields​

15 private and internal fields
MemberWhat it is
private static readonly int BumpMapCached shader property ID for _BumpMap.
private static readonly int BumpStrengthCached shader property ID for _BumpStrength.
private static readonly int ColorA1Cached shader property ID for _ColorA1.
private static readonly int ColorA2Cached shader property ID for _ColorA2.
private static readonly int ColorA3Cached shader property ID for _ColorA3.
private static readonly int ColorB1Cached shader property ID for _ColorB1.
private static readonly int ColorB2Cached shader property ID for _ColorB2.
private static readonly int ColorB3Cached shader property ID for _ColorB3.
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 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 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 six colours and cutoff into the diffuse atlas, and bump map, gloss and metallic into the normal atlas. No emission. Throws if _Sampler is missing.