File: nki.shader

package info (click to toggle)
openarena-data 0.8.5split-17
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 191,828 kB
  • sloc: ansic: 4,262; makefile: 142; perl: 22
file content (248 lines) | stat: -rw-r--r-- 5,734 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
//modification of /skies/IndustrySky for islandctf
textures/nki_shaders/tropicalsky
{
	qer_editorimage env/sky1/sky001_ft.jpg
	nopicmip
	noMipMaps
//	q3map_lightmapFilterRadius self other
	q3map_lightmapFilterRadius 0 8 //to blur q3map_skylight when it has less than 4 iterations, to avoid the "stadium effect"
//	q3map_skylight amount iterations
	q3map_skylight 70 4
	q3map_lightRGB 0.4 0.75 1
//	q3map_lightmapBrightness 2.0 
//	q3map_sunExt red green blue intensity degrees elevation deviance samples
	q3map_sunExt 1 0.84 0.51 140 200 40 4 4
//	q3map_lightsubdivide 256
	q3map_globaltexture
	skyParms env/sky1/sky001 512 -
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm sky
}

// modification of /liquids/justwater for island ctf
textures/nki_shaders/tropicalwater
{
	qer_editorimage textures/liquids/pool3d_4b2.tga
	qer_trans 20
	surfaceparm lightfilter
	surfaceparm nomarks
	surfaceparm trans
//	surfaceparm fog
	surfaceparm water
//	surfaceparm alphashadow
	surfaceparm nolightmap
	//deformVertexes wave <div> <func> <base> <amplitude> <phase> <freq>
	deformVertexes wave 256 sin 0 16 0 0.1 
	tessSize 256
	q3map_globaltexture
	q3map_flare textures/flares/twilightflare
	fogparms ( 0.215686 0.278431 0.333333 ) 1024
	cull disable
	{
		map textures/liquids/pool3d_4b2.tga
		blendfunc blend
		rgbGen const ( 0.384314 0.501961 0.568627 )
		tcMod scroll 0.05 -0.05
		alphaGen wave inversesawtooth 0.5 0 0 1 
	}
	{
		map textures/liquids/pool3d_3.jpg
		blendfunc gl_dst_color gl_one
		rgbGen const ( 1 1 1 )
		tcMod scroll 0.09 0.06
	}
	{
		map textures/liquids/pool3d_5.tga
		blendfunc gl_dst_color gl_one
		rgbGen const ( 1 1 1 )
		tcMod scroll -0.04 -0.08
	}
}

textures/nki_shaders/lavared_1k5
{
	q3map_lightimage textures/nki/nki_lava4.tga  // q3map_lightimage must appear before any qer_editorimage !!
	qer_editorimage textures/nki/nki_lava4.tga
	q3map_lightmapBrightness 2.0
	//q3map_lightmapFilterRadius self other
	surfaceparm lava
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm noimpact
	surfaceparm trans
	q3map_surfacelight 1500
	cull none
	deformvertexes wave 50 sin 2 3 0 0.2 
	q3map_flare textures/flares/lava
	{
		map textures/nki/nki_lava4.tga
//		tcmod scroll -.05 .001
		tcMod turb 0 -0.2 0 0.02
	}
	{
		map textures/nki/nki_lava5l3.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
//		tcmod scroll -.05 .001
		tcMod turb 0.1 -0.1 0 0.01
	}
	
}

textures/nki_shaders/lavabright_1k5
{

	q3map_lightimage textures/nki/nki_lava5.tga  // q3map_lightimage must appear before qer_editorimage !!
	qer_editorimage textures/nki/nki_lava5.tga
	surfaceparm lava
//	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm noimpact
	surfaceparm trans
	q3map_surfacelight 1500
	cull none
	deformvertexes wave 50 sin 2 3 0 0.2 
	q3map_flare textures/flares/lava
	{
		map textures/nki/nki_lava5.tga
		tcmod scroll -.05 .001
		tcMod turb .2 -0.3 0 0.07
	}

}

textures/mapobjects/palmtree1
{
	qer_editorimage models/mapobjects/palmier/palmier1.tga
	surfaceparm nonsolid
	surfaceparm noimpact
//	surfaceparm trans
	surfaceparm nomarks
	surfaceparm alphashadow
	cull disable
	{
		map models/mapobjects/palmier/palmier1.tga
		alphaFunc GE128
		RgbGen vertex
	}
}

textures/nki_shaders/forest4
{
	qer_editorimage textures/nki/nki_forest4.tga
	q3map_lightmapMergable
	q3map_nonPlanar
	q3map_shadeAngle 160
	surfaceparm nonsolid
	surfaceparm lightfilter
	surfaceparm nomarks
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm alphashadow

	cull disable
	{
		map textures/nki/nki_forest4.tga
//		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128
//		rgbGen identity
	}
	// {
		// map $lightmap
		// blendFunc GL_DST_COLOR GL_ZERO
		// rgbGen identity
	// }
}


textures/mapobjects/leafs1
{
	qer_editorimage textures/mapobjects/leafs1.tga
	surfaceparm nonsolid
	surfaceparm lightfilter
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm noimpact
	surfaceparm alphashadow
	cull disable
	{
		map textures/mapobjects/leafs1.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
//		alphaFunc GE128
//		rgbGen identity
	}
	// {
		// map $lightmap
		// blendFunc GL_DST_COLOR GL_ZERO
		// rgbGen identity
	// }
}

textures/mapobjects/leafs2
{
	qer_editorimage textures/mapobjects/leafs2.tga
	surfaceparm nonsolid
	surfaceparm lightfilter
	surfaceparm nomarks
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm alphashadow
	cull disable
	{
		map textures/mapobjects/leafs2.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
//		alphaFunc GE128
//		rgbGen identity
	}
	// {
		// map $lightmap
		// blendFunc GL_DST_COLOR GL_ZERO
		// rgbGen identity
	// }
}

textures/mapobjects/leafs3
{
	qer_editorimage textures/mapobjects/leafs3.tga
	surfaceparm nonsolid
	surfaceparm lightfilter
	surfaceparm nomarks
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm alphashadow
	cull disable
	{
		map textures/mapobjects/leafs3.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		//alphaFunc GE128
//		rgbGen identity
	}
	// {
		// map $lightmap
		// blendFunc GL_DST_COLOR GL_ZERO
		// rgbGen identity
	// }
}

textures/mapobjects/leafs4
{
	qer_editorimage textures/mapobjects/leafs4.tga
	surfaceparm nonsolid
	surfaceparm lightfilter
	surfaceparm nomarks
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm alphashadow
	cull disable
	{
		map textures/mapobjects/leafs4.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		//alphaFunc GE128
//		rgbGen identity
	}
	// {
		// map $lightmap
		// blendFunc GL_DST_COLOR GL_ZERO
		// rgbGen identity
	// }
}