]> git.rm.cloudns.org Git - xonotic/xonotic-maps.pk3dir.git/commitdiff
a new cubemapped water shader
authorRudolf Polzer <divverent@alientrap.org>
Sun, 12 Sep 2010 14:27:21 +0000 (16:27 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 12 Sep 2010 14:27:21 +0000 (16:27 +0200)
scripts/liquids_water.shader
textures/liquids_water/water0_reflect.tga [new file with mode: 0644]

index 8c10a56f5f34a2a4e9bcc6d8010544c715ef5a15..2cfdf3b1b39935fe35fd89fcd6aca12721b6e00c 100644 (file)
@@ -19,6 +19,30 @@ textures/liquids_water/water0
        dp_water 0.1 0.8  3 3  1 1 1  1 1 1  0.125
 }
 
+textures/liquids_water/water0_cubemap
+{
+       qer_trans 20
+       surfaceparm nomarks
+       surfaceparm trans
+       surfaceparm water
+       surfaceparm nolightmap
+       cull none
+       q3map_globaltexture
+       tessSize 256
+       qer_editorimage textures/liquids_water/water0_reflect.tga
+       {
+               map textures/liquids_water/water0.tga
+               tcMod turb 0 0.4 0 0.08
+               blendfunc add
+       }
+       dpreflectcube cubemaps/default/sky
+       {
+               map $lightmap
+               blendfunc add
+               tcGen lightmap
+       }
+}
+
 textures/liquids_water/water1
 {
        qer_editorimage textures/liquids_water/water1.tga
diff --git a/textures/liquids_water/water0_reflect.tga b/textures/liquids_water/water0_reflect.tga
new file mode 100644 (file)
index 0000000..fbe7630
Binary files /dev/null and b/textures/liquids_water/water0_reflect.tga differ