From 3c073e0bc91859a8ad15aac7804016e609c364f3 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 4 Aug 2010 14:55:11 +0200 Subject: [PATCH] shader audit: handle skyboxes properly --- scripts/shader-audit.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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 -- 2.39.2