Building custom shadow support

This commit is contained in:
Anuken
2022-01-07 10:04:59 -05:00
parent 38cb7aa41d
commit 2e0f9ed020
3 changed files with 21 additions and 1 deletions

View File

@@ -1022,6 +1022,12 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
}
}
public void drawCustomShadow(){
Draw.color(0f, 0f, 0f, BlockRenderer.shadowColor.a);
Draw.rect(block.customShadowRegion, x, y, drawrot());
Draw.color();
}
public void drawCracks(){
if(!damaged() || block.size > BlockRenderer.maxCrackSize) return;
int id = pos();