]> de.git.xonotic.org Git - xonotic/xonotic-maps.pk3dir.git/blobdiff - scripts/shader-audit.sh
more fixes
[xonotic/xonotic-maps.pk3dir.git] / scripts / shader-audit.sh
index 4a0bb3710c52f81b473653e1592420f1cf1359f8..5de24bc4ff580eb15399a5fc1b0b961010a2f527 100755 (executable)
@@ -90,7 +90,7 @@ use_texture()
        if [ x"$3" = x"map" ]; then
                lasttex=$2
                if [ -n "$AUDIT_ALPHACHANNELS" ]; then
-                       if [ -f "../${2}_norm.tga" ]; then
+                       if [ -f "../${2}_norm.tga" ] || [ -f "../${2}_norm.png" ] || [ -f "../${2}_norm.jpg" ]; then
                                case "$offsetmapping_match8" in
                                        '') # no dpoffsetmapping keyword
                                                getstats "../${2}_norm.tga" || getstats "../${2}_norm.png" || getstats "../${2}_norm.jpg"