From: Rudolf Polzer Date: Wed, 4 Aug 2010 12:55:11 +0000 (+0200) Subject: shader audit: handle skyboxes properly X-Git-Tag: xonotic-v0.1.0preview~141^2~7^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3c073e0bc91859a8ad15aac7804016e609c364f3;p=xonotic%2Fxonotic-maps.pk3dir.git shader audit: handle skyboxes properly --- diff --git a/scripts/shader-audit.sh b/scripts/shader-audit.sh index 976f57e8..95454f83 100644 --- a/scripts/shader-audit.sh +++ b/scripts/shader-audit.sh @@ -209,13 +209,18 @@ parse_shaderstage() parse_shader() { use_texture "$parsing_shader" "$parsing_shader" shader - while read L A1; do + while read L A1 AREST; do case "$L" in - qer_editorimage\ *) - use_texture "$parsing_shader" "$A1" editorimage + qer_editorimage) + use_texture "$parsing_shader" "`normalize "$A1"`" editorimage ;; - skyparms\ *) - use_texture "$parsing_shader" "$A1" sky + skyparms) + use_texture "$parsing_shader" "${A1}_lf" sky + use_texture "$parsing_shader" "${A1}_rt" sky + use_texture "$parsing_shader" "${A1}_up" sky + use_texture "$parsing_shader" "${A1}_dn" sky + use_texture "$parsing_shader" "${A1}_ft" sky + use_texture "$parsing_shader" "${A1}_bk" sky ;; '{') parse_shaderstage