TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ ConvertPaintIdToTileShaderIndex()

static int Terraria.Main.ConvertPaintIdToTileShaderIndex ( int paintIndexOnTile,
bool isUsedForPaintingGrass,
bool useWallShaderHacks )
inlinestatic

Definition at line 75009 of file Main.cs.

75010 {
75011 if (paintIndexOnTile == 31)
75012 {
75013 return 0;
75014 }
75016 {
75017 return 43;
75018 }
75019 if (paintIndexOnTile >= 28)
75020 {
75021 return paintIndexOnTile + 12;
75022 }
75024 {
75025 return paintIndexOnTile + 27;
75026 }
75027 return paintIndexOnTile;
75028 }

Referenced by Terraria.GameContent.TreePaintingSettings.ApplyShader(), Terraria.GameContent.TilePaintSystemV2.ARenderTargetHolder.PrepareShader(), and Terraria.DataStructures.PlayerDrawHelper.SetShaderForData().

+ Here is the caller graph for this function: