From 643f06762b1d8502c0c717eff3abce70ecf97fc5 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 3 Sep 2011 12:26:20 +0200 Subject: [PATCH] fix alpha channel auditing --- scripts/common.shader | 5 +++-- scripts/shader-audit.sh | 2 +- textures/common/invisible/invisible.tga | Bin 0 -> 22 bytes 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 textures/common/invisible/invisible.tga diff --git a/scripts/common.shader b/scripts/common.shader index 02202d5a..fbcd776b 100644 --- a/scripts/common.shader +++ b/scripts/common.shader @@ -78,9 +78,10 @@ textures/common/hintskip textures/common/invisible // solid, transparent polygons, casts shadows { + qer_editorimage textures/common/invisible.tga surfaceparm nolightmap { - map textures/common/invisible.tga + map textures/common/invisible/invisible.tga alphaFunc GE128 depthWrite rgbGen vertex @@ -260,4 +261,4 @@ textures/common/lavanodraw surfaceparm lava surfaceparm trans surfaceparm nomarks -} \ No newline at end of file +} diff --git a/scripts/shader-audit.sh b/scripts/shader-audit.sh index c006707e..85d0e2ad 100755 --- a/scripts/shader-audit.sh +++ b/scripts/shader-audit.sh @@ -27,7 +27,7 @@ forbidden_prefixes= getstats_e() { - identify -verbose -alpha extract -depth 8 "$1" | { + identify -verbose -alpha set -alpha extract -depth 8 "$1" | { pix=0 while read -r L V R; do case "$L" in diff --git a/textures/common/invisible/invisible.tga b/textures/common/invisible/invisible.tga new file mode 100644 index 0000000000000000000000000000000000000000..0aa07001431f106f59e12a584a3da506f030cdd8 GIT binary patch literal 22 UcmZQzU}As)Mg~R(1r87o00B4vEdT%j literal 0 HcmV?d00001 -- 2.39.2