]> git.rm.cloudns.org Git - xonotic/xonotic-maps.pk3dir.git/commitdiff
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 baf700f0dd072a31f48b43319c3ae58cf54b0ec6..5fb16f1f28562a65650422a24db1b966256fa639 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