X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-maps.pk3dir.git;a=blobdiff_plain;f=scripts%2Fshader-audit.sh;fp=scripts%2Fshader-audit.sh;h=8aab433ebc783ec62d8c26977e6877f9f39e63b4;hp=c583f0ee4f7a041026011f0ab56d800e009f01c4;hb=cc5f26448eb348ea72ea94ecfeacbe472c92f850;hpb=e9aee1138217c79c3b989b17c00618e454ceaae2 diff --git a/scripts/shader-audit.sh b/scripts/shader-audit.sh index c583f0ee..8aab433e 100755 --- a/scripts/shader-audit.sh +++ b/scripts/shader-audit.sh @@ -342,17 +342,18 @@ parse_shaderstage_post() mainalphagen=$ss_alphagen elif [ x"$ss_alphagen" = x"vertex" ] && ! $textureblending; then case "$mainblendfunc:$mainalphafunc:$ss_blendfunc:$ss_alphafunc" in + # TODO check against dp none:none:"gl_src_alpha gl_one_minus_src_alpha":none) textureblending=true ;; none:none:filter:none) textureblending=true ;; none:none:none:g*) textureblending=true ;; "gl_one gl_zero":none:filter:none) textureblending=true ;; "gl_one gl_zero":none:none:g*) textureblending=true ;; *) - err "texture blending requires first stage to have no blendfunc/alphatest, and requires second stage to be blendfunc filter" + err "$parsing_shader uses texture blending, but that requires first stage to have no blendfunc/alphatest, and requires second stage to be blendfunc filter" ;; esac else - err "multistage shader without alphagen vertex, or using more than 2 stages, is not supported by DarkPlaces" + err "$parsing_shader, a multistage shader without alphagen vertex, or using more than 2 stages, is not supported by DarkPlaces" fi fi }