From: Rudolf Polzer Date: Tue, 13 Sep 2011 11:15:46 +0000 (+0200) Subject: shader audit script fixes (don't report same shader twice) X-Git-Tag: xonotic-v0.6.0~74^2~11 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-maps.pk3dir.git;a=commitdiff_plain;h=215192265c7b8a5506ffe1a08c914d388054a0b6 shader audit script fixes (don't report same shader twice) --- diff --git a/scripts/shader-audit.sh b/scripts/shader-audit.sh index cf0beec9..ccb5f64b 100755 --- a/scripts/shader-audit.sh +++ b/scripts/shader-audit.sh @@ -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 ;;