]> git.rm.cloudns.org Git - xonotic/xonotic-maps.pk3dir.git/commitdiff
shader audit script fixes (don't report same shader twice)
authorRudolf Polzer <divverent@alientrap.org>
Tue, 13 Sep 2011 11:15:46 +0000 (13:15 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 13 Sep 2011 11:15:46 +0000 (13:15 +0200)
scripts/shader-audit.sh

index cf0beec980ca2b03e717acbd5e7e9d97ef27bb7b..ccb5f64bb4257005e36539537c61ef74a320f93c 100755 (executable)
@@ -89,7 +89,7 @@ use_texture()
 
        if [ x"$3" = x"map" ]; then
                lasttex=$2
-               if [ -n "$AUDIT_ALPHACHANNELS" ]; then
+               if [ -n "$AUDIT_ALPHACHANNELS" ] && [ x"$offsetmapping_match8" != x"firststagedone" ]; then
                        if [ -f "../${2}_norm.tga" ] || [ -f "../${2}_norm.png" ] || [ -f "../${2}_norm.jpg" ]; then
                                case "$offsetmapping_match8" in
                                        '') # no dpoffsetmapping keyword
@@ -292,6 +292,7 @@ parse_shaderstage()
                                        *)
                                                use_texture "$parsing_shader" "`normalize "$A1"`" map
                                                ss_map="`normalize "$A1"`"
+                                               offsetmapping_match8=firststagedone
                                                ;;
                                esac
                                ;;