]> git.xonotic.org Git - xonotic/xonotic-maps.pk3dir.git/commitdiff
fix some shader naming bugs
authorRudolf Polzer <divverent@xonotic.org>
Wed, 29 Feb 2012 10:00:17 +0000 (11:00 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 29 Feb 2012 10:00:17 +0000 (11:00 +0100)
scripts/map_xoylent.shader
scripts/model_xoylent.shader [deleted file]
scripts/shader-audit.sh

index 39ee4c7df40d4cbb01a7761d277072f33fd02163..07d77b95f52b39c09db3366f130dec59d82c9f06 100755 (executable)
@@ -275,3 +275,107 @@ textures/map_xoylent/trak6_trim4_edit
                blendfunc filter
        }
 }
+models/map_xoylent/asteroid
+{
+       qer_editorimage models/map_xoylent/asteroid.tga
+       {
+               map models/map_xoylent/asteroid.tga
+       }
+}
+
+models/map_xoylent/asteroid_egg
+{
+       qer_editorimage models/map_xoylent/asteroid_egg.tga
+       surfaceparm nolightmap
+       {
+               map models/map_xoylent/asteroid_egg.tga
+       }
+}
+
+models/map_xoylent/asteroid_egg_sign
+{
+       qer_editorimage models/map_xoylent/asteroid_egg_sign.tga
+       surfaceparm nolightmap
+       {
+               map models/map_xoylent/asteroid_egg_sign.tga
+       }
+}
+
+models/map_xoylent/asteroids_skybox
+{
+       qer_editorimage models/map_xoylent/asteroids_skybox.tga
+       surfaceparm nolightmap
+       {
+               map models/map_xoylent/asteroids_skybox.tga
+       }
+}
+
+models/map_xoylent/lamp_light
+{
+       qer_editorimage models/map_xoylent/lamp_light.tga
+       q3map_surfacelight 2500
+       q3map_lightRGB 1 0.9375 0.875
+       {
+               map models/map_xoylent/lamp_light.tga
+       }
+}
+
+models/map_xoylent/lamp_small_light
+{
+       qer_editorimage models/map_xoylent/lamp_light.tga
+       q3map_surfacelight 500
+       q3map_lightRGB 1 0.9375 0.875
+       {
+               map models/map_xoylent/lamp_light.tga
+       }
+}
+
+models/map_xoylent/pathway
+{
+       qer_editorimage models/map_xoylent/pathway.tga
+       dpglossintensitymod 3
+       dpglossexponentmod 4
+       {
+               map models/map_xoylent/pathway.tga
+       }
+       {
+               map $lightmap
+               rgbGen identity
+               tcGen lightmap
+               blendfunc filter
+       }
+}
+
+models/map_xoylent/spawnpoint_light
+{
+       qer_editorimage models/map_xoylent/spawnpoint_light.tga
+       {
+               map models/map_xoylent/spawnpoint_light.tga
+               tcMod scroll 0.5 0
+       }
+}
+
+models/map_xoylent/spine
+{
+       qer_editorimage models/map_xoylent/spine.tga
+       dpglossintensitymod 3
+       dpglossexponentmod 4
+       {
+               map models/map_xoylent/spine.tga
+       }
+       {
+               map $lightmap
+               rgbGen identity
+               tcGen lightmap
+               blendfunc filter
+       }
+}
+
+models/map_xoylent/turbine_fan
+{
+       qer_editorimage models/map_xoylent/turbine_fan.tga
+       surfaceparm nolightmap
+       {
+               map models/map_xoylent/turbine_fan.tga
+       }
+}
diff --git a/scripts/model_xoylent.shader b/scripts/model_xoylent.shader
deleted file mode 100755 (executable)
index bd61cb1..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-models/map_xoylent/asteroid
-{
-       qer_editorimage models/map_xoylent/asteroid.tga
-       {
-               map models/map_xoylent/asteroid.tga
-       }
-}
-
-models/map_xoylent/asteroid_egg
-{
-       qer_editorimage models/map_xoylent/asteroid_egg.tga
-       surfaceparm nolightmap
-       {
-               map models/map_xoylent/asteroid_egg.tga
-       }
-}
-
-models/map_xoylent/asteroid_egg_sign
-{
-       qer_editorimage models/map_xoylent/asteroid_egg_sign.tga
-       surfaceparm nolightmap
-       {
-               map models/map_xoylent/asteroid_egg_sign.tga
-       }
-}
-
-models/map_xoylent/asteroids_skybox
-{
-       qer_editorimage models/map_xoylent/asteroids_skybox.tga
-       surfaceparm nolightmap
-       {
-               map models/map_xoylent/asteroids_skybox.tga
-       }
-}
-
-models/map_xoylent/lamp_light
-{
-       qer_editorimage models/map_xoylent/lamp_light.tga
-       q3map_surfacelight 2500
-       q3map_lightRGB 1 0.9375 0.875
-       {
-               map models/map_xoylent/lamp_light.tga
-       }
-}
-
-models/map_xoylent/lamp_small_light
-{
-       qer_editorimage models/map_xoylent/lamp_light.tga
-       q3map_surfacelight 500
-       q3map_lightRGB 1 0.9375 0.875
-       {
-               map models/map_xoylent/lamp_light.tga
-       }
-}
-
-models/map_xoylent/pathway
-{
-       qer_editorimage models/map_xoylent/pathway.tga
-       dpglossintensitymod 3
-       dpglossexponentmod 4
-       {
-               map models/map_xoylent/pathway.tga
-       }
-       {
-               map $lightmap
-               rgbGen identity
-               tcGen lightmap
-               blendfunc filter
-       }
-}
-
-models/map_xoylent/spawnpoint_light
-{
-       qer_editorimage models/map_xoylent/spawnpoint_light.tga
-       {
-               map models/map_xoylent/spawnpoint_light.tga
-               tcMod scroll 0.5 0
-       }
-}
-
-models/map_xoylent/spine
-{
-       qer_editorimage models/map_xoylent/spine.tga
-       dpglossintensitymod 3
-       dpglossexponentmod 4
-       {
-               map models/map_xoylent/spine.tga
-       }
-       {
-               map $lightmap
-               rgbGen identity
-               tcGen lightmap
-               blendfunc filter
-       }
-}
-
-models/map_xoylent/turbine_fan
-{
-       qer_editorimage models/map_xoylent/turbine_fan.tga
-       surfaceparm nolightmap
-       {
-               map models/map_xoylent/turbine_fan.tga
-       }
-}
index 80dd7d20e2ab29e1b35bb29b317d3b9083b476ed..54018b95e4df17d650f1fff2e9e15e170bac2d70 100755 (executable)
@@ -211,7 +211,9 @@ use_texture()
                        suf=${1#*/map_}
                        map=${suf%%[_/]*}
                        case "$2" in
-                               "$pre"/map_$map[/_]*)
+                               textures/map_$map[/_]*)
+                                       ;;
+                               models/map_$map[/_]*)
                                        ;;
                                textures/map_*|models/map_*)
                                        # protect one map's textures from the evil of other maps :P