Skip to main content

ShaderBlit

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

Internal base for the per-shader atlas blitters. AtlasDefinition picks a subclass by shader name and calls Blit to draw one material into the atlas textures.

Constructors​

MemberWhat it is
protected ShaderBlit()Creates a ShaderBlit with default values.

Methods​

MemberWhat it is
abstract 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)Copies the material's textures and settings onto the blit materials and draws them into the diffuse, normal and, if asked, emission atlas at the given rect.
protected void CopyKeyword(Material copyFrom, Material copyTo, string keyword)Turns a shader keyword on or off on the target material to match the source material.