From d2428b7fbff6c353cb96bb79511d34b594ad3f42 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 3 Sep 2011 16:59:32 +0200 Subject: [PATCH] downgrade useless normalmap to a warning (as the engine detects this now and turns off offsetmapping) --- scripts/shader-audit.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/shader-audit.sh b/scripts/shader-audit.sh index 75e7e282..cf0beec9 100755 --- a/scripts/shader-audit.sh +++ b/scripts/shader-audit.sh @@ -95,7 +95,7 @@ use_texture() '') # no dpoffsetmapping keyword getstats "../${2}_norm.tga" || getstats "../${2}_norm.png" || getstats "../${2}_norm.jpg" if [ "$min" -eq "$max" ]; then - echo "(EE) shader $1 uses broken normalmap ${2}_norm.tga (add dpoffsetmapping none)"; seterror + echo "(WW) shader $1 uses broken normalmap ${2}_norm.tga (add dpoffsetmapping none)" else echo "(EE) shader $1 uses ${2}_norm.tga but lacks median (add dpoffsetmapping - 1 match8 $median)"; seterror fi @@ -347,6 +347,7 @@ parse_shaderstage() fi ;; *) + # alphagen is set, but blendfunc has no use for it echo "(EE) $parsing_shader uses alpha-using texture $ss_map with blendfunc $ss_blendfunc and alphafunc $ss_alphafunc and alphagen $ss_alphagen"; seterror ;; esac -- 2.39.2