]> git.xonotic.org Git - xonotic/xonotic-maps.pk3dir.git/blob - scripts/liquids_water.shader
Fix NULL textures on afterslime
[xonotic/xonotic-maps.pk3dir.git] / scripts / liquids_water.shader
1 // reflective water by Urre and Zombie
2
3 textures/liquids_water/water0
4 {
5         qer_editorimage textures/liquids_water/water0.tga
6         qer_trans 20
7         surfaceparm nomarks
8         surfaceparm trans
9         surfaceparm water
10         surfaceparm nolightmap
11         cull none
12         q3map_globaltexture
13         {
14                 map textures/liquids_water/water0.tga
15                 tcmod scale 1.2 0.7
16                 tcMod scroll 0.084 0.049
17                 blendfunc blend
18         }
19         dp_water 0.1 0.25  3 3  1 1 1  1 1 1  0.125
20 }
21
22 textures/liquids_water/water0_cubemap
23 {
24         qer_trans 20
25         surfaceparm nomarks
26         surfaceparm trans
27         surfaceparm water
28         surfaceparm nolightmap
29         cull none
30         q3map_globaltexture
31         tessSize 256
32         qer_editorimage textures/liquids_water/water0c_reflect.tga
33         {
34                 map textures/liquids_water/water0c.tga
35                 tcMod turb 0 0.4 0 0.08
36                 blendfunc add
37         }
38         dpreflectcube cubemaps/default/sky
39         {
40                 map $lightmap
41                 blendfunc add
42                 tcGen lightmap
43         }
44         dp_water 0.1 0.9  3 3  1 1 1  1 1 1  0.4
45 }
46
47 textures/liquids_water/water0_cubemap_alphamod
48 {
49         qer_trans 20
50         surfaceparm nomarks
51         surfaceparm trans
52         surfaceparm water
53         surfaceparm nolightmap
54         cull none
55         q3map_globaltexture
56         //tessSize 256
57         qer_editorimage textures/liquids_water/water0c_reflect.tga
58         {
59                 map textures/liquids_water/water0c.tga
60                 tcMod turb 0 0.4 0 0.08
61                 blendfunc GL_SRC_ALPHA GL_ONE
62                 alphaGen vertex
63         }
64         dpreflectcube cubemaps/default/sky
65         {
66                 map $lightmap
67                 blendfunc add
68                 tcGen lightmap
69         }
70         dp_water 0.1 0.9  3 3  1 1 1  1 1 1  0.4
71 }
72
73 textures/liquids_water/water1
74 {
75         qer_editorimage textures/liquids_water/water1.tga
76         qer_trans 20
77         surfaceparm nomarks
78         surfaceparm trans
79         surfaceparm water
80         surfaceparm nolightmap
81         cull none
82         q3map_globaltexture
83         {
84                 map textures/liquids_water/water1.tga
85                 tcmod scale 1.2 0.7
86                 tcMod scroll 0.084 0.049
87                 blendfunc blend
88         }
89         dp_water 0.1 0.25  3 3  1 1 1  1 1 1  0.125
90 }
91
92 textures/liquids_water/water2
93 {
94         qer_editorimage textures/liquids_water/water2.tga
95         qer_trans 20
96         surfaceparm nomarks
97         surfaceparm trans
98         surfaceparm water
99         surfaceparm nolightmap
100         cull none
101         q3map_globaltexture
102         {
103                 map textures/liquids_water/water2.tga
104                 tcmod scale 1.2 0.7
105                 tcMod scroll 0.084 0.049
106                 blendfunc blend
107         }
108         dp_water 0.1 0.25  3 3  1 1 1  1 1 1  0.125
109 }
110
111 textures/liquids_water/ruiner_water
112 {
113         qer_editorimage textures/liquids_water/ruiner_water.jpg
114         qer_trans 0.5
115         surfaceparm noimpact
116         surfaceparm trans
117         surfaceparm nonsolid
118         surfaceparm water
119         deformVertexes wave 150.0 sin 2 5 0.25 0.1
120         Q3map_TessSize 128
121         cull none
122         {
123                 map textures/liquids_water/ruiner_water.jpg
124                 blendFunc add
125                 rgbGen identity
126         }
127 }