From fe2bc3961ec3b3164786074b37e36581b81fa68c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 23 Feb 2025 18:37:17 +0100 Subject: New client and client data processing tools. --- tools/gentextures.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tools/gentextures.sh (limited to 'tools/gentextures.sh') diff --git a/tools/gentextures.sh b/tools/gentextures.sh new file mode 100644 index 0000000..b9eabb9 --- /dev/null +++ b/tools/gentextures.sh @@ -0,0 +1,4 @@ +#!/bin/bash +pngtopnm tools/rock_overlay@2x.png | pnmnorm | pgmtoppm "#000000-#111111" | ppmquant 2 | pnmtopng > tools/texture_mask.png +convert tools/texture_mask.png -alpha copy -fx '#fff' images/texture.png +zopflipng -m -y images/texture.png images/texture.png -- cgit v1.2.3