shader audit: handle skyboxes properly
authorRudolf Polzer <divverent@alientrap.org>
Wed, 4 Aug 2010 12:55:11 +0000 (14:55 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 4 Aug 2010 12:55:11 +0000 (14:55 +0200)
scripts/shader-audit.sh

index 976f57e831cd96a59c8c26853d143b0af1d77d8a..95454f835ad2beb5788da7549328de1e06bf047d 100644 (file)
@@ -209,13 +209,18 @@ parse_shaderstage()
 parse_shader()
 {
        use_texture "$parsing_shader" "$parsing_shader" shader
 parse_shader()
 {
        use_texture "$parsing_shader" "$parsing_shader" shader
-       while read L A1; do
+       while read L A1 AREST; do
                case "$L" in
                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
                                ;;
                        '{')
                                parse_shaderstage