]> de.git.xonotic.org Git - xonotic/xonotic-maps.pk3dir.git/commitdiff
allow skybox foo_bar to use env/foo (common for having multiple shaders for one skybox)
authorRudolf Polzer <divverent@alientrap.org>
Thu, 22 Jul 2010 13:37:50 +0000 (15:37 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 22 Jul 2010 13:37:50 +0000 (15:37 +0200)
scripts/shader-audit.sh

index 95ae9ae18851f454aac3700f010192cf8e4b8274..0d49617c32fd211e4669fb38189446b5dc87d224 100644 (file)
@@ -137,11 +137,12 @@ use_texture()
                        ;;
                textures/skies/*)
                        sky=${1#textures/skies/}
+                       sky=${sky%%_*}
                        case "$2" in
                                "$1")
                                        # typical place for preview image
                                        ;;
-                               env/"${1#textures/skies/}")
+                               env/$sky[/_]*)
                                        # typical place for skybox
                                        ;;
                                *)