From: Rudolf Polzer Date: Thu, 22 Jul 2010 13:37:50 +0000 (+0200) Subject: allow skybox foo_bar to use env/foo (common for having multiple shaders for one skybox) X-Git-Tag: xonotic-v0.1.0preview~141^2~7^2~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6a9636b77aa080c51b40be7ab99fded1469ea4c4;p=xonotic%2Fxonotic-maps.pk3dir.git allow skybox foo_bar to use env/foo (common for having multiple shaders for one skybox) --- diff --git a/scripts/shader-audit.sh b/scripts/shader-audit.sh index 95ae9ae1..0d49617c 100644 --- a/scripts/shader-audit.sh +++ b/scripts/shader-audit.sh @@ -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 ;; *)