diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-06-03 15:47:18 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-06-03 15:47:18 +1000 |
commit | 5d1e85b24154dea8ccf0fc98e54a5c0cbf32453c (patch) | |
tree | fa9bf4dbe72f0244bcdac361ef44060f421a7971 /source/game/StarTileDrawer.cpp | |
parent | add17da988f4518c451abc4d0bacf536071e1c0b (diff) |
player.availableRecipes and root.allRecipes
Diffstat (limited to 'source/game/StarTileDrawer.cpp')
-rw-r--r-- | source/game/StarTileDrawer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/game/StarTileDrawer.cpp b/source/game/StarTileDrawer.cpp index 2fa5051..15e88f3 100644 --- a/source/game/StarTileDrawer.cpp +++ b/source/game/StarTileDrawer.cpp @@ -100,9 +100,11 @@ bool TileDrawer::produceTerrainDrawables(Drawables& drawables, return false; auto getPieceImage = [](MaterialRenderPieceConstPtr const& piece, Box<float, 2> const& box, MaterialHue hue, Directives const* directives) -> AssetPath { - AssetPath image = hue == 0 + String path = (hue == 0) ? strf("{}?crop={};{};{};{}", piece->texture, box.xMin(), box.yMin(), box.xMax(), box.yMax()) : strf("{}?crop={};{};{};{}?hueshift={}", piece->texture, box.xMin(), box.yMin(), box.xMax(), box.yMax(), materialHueToDegrees(hue)); + + AssetPath image(path); if (directives) image.directives += *directives; |