]> git.rm.cloudns.org Git - xonotic/xonotic-maps.pk3dir.git/commitdiff
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 02202d5ada1571ba40007e5d83efbed629c545e2..fbcd776bbca5d0bceb53f2760821529961f17d0a 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 c006707e14708fb77df43e59fa7d934de543702d..85d0e2adf3ef8151181b26754eb5236a1822dada 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