add water0_cubemap_alphamod (alpha-moddable version, untesselated)
authorRudolf Polzer <divverent@xonotic.org>
Thu, 15 Dec 2011 19:40:05 +0000 (20:40 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 15 Dec 2011 19:40:48 +0000 (20:40 +0100)
scripts/liquids_water.shader

index baf700f..5fb16f1 100644 (file)
@@ -44,6 +44,32 @@ textures/liquids_water/water0_cubemap
        dp_water 0.1 0.9  3 3  1 1 1  1 1 1  0.4
 }
 
+textures/liquids_water/water0_cubemap_alphamod
+{
+       qer_trans 20
+       surfaceparm nomarks
+       surfaceparm trans
+       surfaceparm water
+       surfaceparm nolightmap
+       cull none
+       q3map_globaltexture
+       //tessSize 256
+       qer_editorimage textures/liquids_water/water0c_reflect.tga
+       {
+               map textures/liquids_water/water0c.tga
+               tcMod turb 0 0.4 0 0.08
+               blendfunc GL_SRC_ALPHA GL_ONE
+               alphaGen vertex
+       }
+       dpreflectcube cubemaps/default/sky
+       {
+               map $lightmap
+               blendfunc add
+               tcGen lightmap
+       }
+       dp_water 0.1 0.9  3 3  1 1 1  1 1 1  0.4
+}
+
 textures/liquids_water/water1
 {
        qer_editorimage textures/liquids_water/water1.tga