From: Rudolf Polzer Date: Sat, 3 Sep 2011 10:26:20 +0000 (+0200) Subject: fix alpha channel auditing X-Git-Tag: xonotic-v0.5.0~19 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=643f06762b1d8502c0c717eff3abce70ecf97fc5;p=xonotic%2Fxonotic-maps.pk3dir.git fix alpha channel auditing --- 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 00000000..0aa07001 Binary files /dev/null and b/textures/common/invisible/invisible.tga differ