From 6a9636b77aa080c51b40be7ab99fded1469ea4c4 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 22 Jul 2010 15:37:50 +0200 Subject: [PATCH] allow skybox foo_bar to use env/foo (common for having multiple shaders for one skybox) --- scripts/shader-audit.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ;; *) -- 2.39.2