;;
esac
;;
- ## RULE: textures/FOO/* must use textures/FOO/*, for FOO in decals, liquids_water, liquids_slime, liquids_lava, warpzone
- textures/decals/*|textures/liquids_water/*|textures/liquids_slime/*|textures/liquids_lava/*|textures/warpzone/*)
- pre=${1%/*}
+ ## RULE: textures/FOO/* must use textures/FOO/*, for FOO in decals, liquids_water, liquids_slime, liquids_lava
+ textures/decals/*|textures/liquids_*/*|textures/effects_*/*|textures/screens/*|textures/logos/*)
+ pre=`echo "$1" | cut -d / -f 1-2`
case "$2" in
"$pre"/*)
# I _suppose_ this is fine, as tZork committed this pack
parse_shaderstage()
{
while read L A1 Aother; do
- case "$L" in
+ case "`echo "$L" | tr A-Z a-z`" in
map)
case "$A1" in
'$lightmap')
{
use_texture "$parsing_shader" "$parsing_shader" shader
while read L A1 Aother; do
- case "$L" in
+ case "`echo "$L" | tr A-Z a-z`" in
qer_editorimage)
use_texture "$parsing_shader" "`normalize "$A1"`" editorimage
;;