projects
/
xonotic
/
xonotic-maps.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
915cb27
)
allow skybox foo_bar to use env/foo (common for having multiple shaders for one skybox)
author
Rudolf Polzer <divverent@alientrap.org>
Thu, 22 Jul 2010 13:37:50 +0000
(15:37 +0200)
committer
Rudolf Polzer <divverent@alientrap.org>
Thu, 22 Jul 2010 13:37:50 +0000
(15:37 +0200)
scripts/shader-audit.sh
patch
|
blob
|
history
diff --git
a/scripts/shader-audit.sh
b/scripts/shader-audit.sh
index
95ae9ae
..
0d49617
100644
(file)
--- 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
;;
*)