]> de.git.xonotic.org Git - xonotic/xonotic-maps.pk3dir.git/blobdiff - scripts/effects_warpzone.shader
fix some shader bugs
[xonotic/xonotic-maps.pk3dir.git] / scripts / effects_warpzone.shader
index 81761ec18df57bce03c5c86a2dd8041e3c7aa8d8..ebb9d26db804177b752b4b0279455ee813e2374c 100644 (file)
@@ -1,11 +1,12 @@
-textures/warpzone/warpzone-wavy
+textures/effects_warpzone/wavy
 {
+       dpoffsetmapping none
        surfaceparm nolightmap
        // surfaceparm nonsolid // no, it must be solid like trigger
        surfaceparm trans
        surfaceparm nomarks
        {
-               map textures/warpzone/warpzone-wavy.tga
+               map textures/effects_warpzone/wavy.tga
                tcMod scroll 0.06 0.06
                blendfunc blend
        }
@@ -13,26 +14,36 @@ textures/warpzone/warpzone-wavy
        dp_refract 1 1 1 1 // makes the camera render like a refraction
 }
 
-textures/warpzone/warpzone-blueedge
+textures/effects_warpzone/blueedge
 {
        surfaceparm nonsolid
        surfaceparm nomarks
        q3map_surfacelight 2500
        cull none
        {
-               map textures/warpzone/warpzone-blueedge.tga
-               blendfunc add
+               map textures/effects_warpzone/blueedge.tga
+               blendfunc GL_SRC_ALPHA GL_ONE
        }
 }
 
-textures/warpzone/warpzone-rededge
+textures/effects_warpzone/rededge
 {
        surfaceparm nonsolid
        surfaceparm nomarks
        q3map_surfacelight 2500
        cull none
        {
-               map textures/warpzone/warpzone-rededge.tga
-               blendfunc add
+               map textures/effects_warpzone/rededge.tga
+               blendfunc GL_SRC_ALPHA GL_ONE
+       }
+}
+
+textures/effects_warpzone/warpzone_backdrop
+{
+       surfaceparm nomarks
+       nolightmap
+       {
+               tcMod turb 0 0.4 0 0.08
+               map textures/effects_warpzone/warpzone_backdrop
        }
 }