]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/scripts/water.shader
Cubemap reflections for all fluid types, for much better water slime and lava
[voretournament/voretournament.git] / data / scripts / water.shader
index e9be30c8e93bbc47d61bdfe728b541f0a248da7a..034d62949561a7e3ebc1831dca99ad9a7ab50556 100644 (file)
@@ -3,24 +3,6 @@
 textures/water/water0\r
 {\r
        qer_editorimage textures/water/water0.tga\r
-       qer_trans 20\r
-       surfaceparm nomarks\r
-       surfaceparm trans\r
-       surfaceparm water\r
-       surfaceparm nolightmap\r
-       cull none\r
-       q3map_globaltexture\r
-       {\r
-               map textures/water/water0.tga\r
-               tcMod scroll 0.07 0.07\r
-               tcmod scale 1.2 0.7\r
-               blendfunc blend\r
-       }\r
-       dp_water 0.1 0.8  3 3  1 1 1  1 1 1  0.125\r
-}\r
-\r
-textures/water/water0_cubemap\r
-{\r
        qer_trans 20\r
        surfaceparm nomarks\r
        surfaceparm trans\r
@@ -29,7 +11,6 @@ textures/water/water0_cubemap
        cull none\r
        q3map_globaltexture\r
        tessSize 256\r
-       qer_editorimage textures/water/water0_reflect.tga\r
        {\r
                map textures/water/water0.tga\r
                tcMod turb 0 0.4 0 0.08\r
@@ -41,6 +22,7 @@ textures/water/water0_cubemap
                blendfunc add\r
                tcGen lightmap\r
        }\r
+       dp_water 0.1 0.9  3 3  1 1 1  1 1 1  0.4\r
 }\r
 \r
 textures/water/water1\r
@@ -53,11 +35,17 @@ textures/water/water1
        surfaceparm nolightmap\r
        cull none\r
        q3map_globaltexture\r
+       tessSize 256\r
        {\r
                map textures/water/water1.tga\r
-               tcMod scroll 0.07 0.07\r
-               tcmod scale 1.2 0.7\r
-               blendfunc blend\r
+               tcMod turb 0 0.4 0 0.08\r
+               blendfunc add\r
+       }\r
+       dpreflectcube cubemaps/default/sky\r
+       {\r
+               map $lightmap\r
+               blendfunc add\r
+               tcGen lightmap\r
        }\r
        dp_water 0.1 0.8  3 3  1 1 1  1 1 1  0.125\r
 }\r
@@ -72,11 +60,17 @@ textures/water/water2
        surfaceparm nolightmap\r
        cull none\r
        q3map_globaltexture\r
+       tessSize 256\r
        {\r
                map textures/water/water2.tga\r
-               tcMod scroll 0.07 0.07\r
-               tcmod scale 1.2 0.7\r
-               blendfunc blend\r
+               tcMod turb 0 0.4 0 0.08\r
+               blendfunc add\r
+       }\r
+       dpreflectcube cubemaps/default/sky\r
+       {\r
+               map $lightmap\r
+               blendfunc add\r
+               tcGen lightmap\r
        }\r
        dp_water 0.1 0.8  3 3  1 1 1  1 1 1  0.125\r
 }\r
@@ -91,11 +85,17 @@ textures/water/slime1
        surfaceparm nolightmap\r
        cull none\r
        q3map_globaltexture\r
+       tessSize 256\r
        {\r
                map textures/water/slime1.tga\r
-               tcMod scroll 0.07 0.07\r
-               tcmod scale 1.2 0.7\r
-               blendfunc blend\r
+               tcMod turb 0 0.4 0 0.08\r
+               blendfunc add\r
+       }\r
+       dpreflectcube cubemaps/default/sky\r
+       {\r
+               map $lightmap\r
+               blendfunc add\r
+               tcGen lightmap\r
        }\r
        dp_water 0.1 0.8  3 3  0.5 1 0.5  0.5 1 0.5  0.75\r
 }\r
@@ -110,11 +110,17 @@ textures/water/slime2
        surfaceparm nolightmap\r
        cull none\r
        q3map_globaltexture\r
+       tessSize 256\r
        {\r
                map textures/water/slime1.tga\r
-               tcMod scroll 0.07 0.07\r
-               tcmod scale 1.2 0.7\r
-               blendfunc blend\r
+               tcMod turb 0 0.4 0 0.08\r
+               blendfunc add\r
+       }\r
+       dpreflectcube cubemaps/default/sky\r
+       {\r
+               map $lightmap\r
+               blendfunc add\r
+               tcGen lightmap\r
        }\r
        dp_water 0.1 0.8  3 3  1 1 0.5  1 1 0.5  0.75\r
 }\r