fix alpha channel auditing
authorRudolf Polzer <divVerent@xonotic.org>
Sat, 3 Sep 2011 10:26:20 +0000 (12:26 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Sat, 3 Sep 2011 10:26:20 +0000 (12:26 +0200)
scripts/common.shader
scripts/shader-audit.sh
textures/common/invisible/invisible.tga [new file with mode: 0644]

index 02202d5..fbcd776 100644 (file)
@@ -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
+}
index c006707..85d0e2a 100755 (executable)
@@ -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 (file)
index 0000000..0aa0700
Binary files /dev/null and b/textures/common/invisible/invisible.tga differ