q3rally/baseq3r/scripts/ctf.shader

859 lines
17 KiB
Text
Raw Normal View History

2020-07-07 22:36:26 +00:00
// ------------------------------------------------------------
// Shaders for Q3Rally CTF - rewritten by P3rlE
// based on the ctf.shader
// ------------------------------------------------------------
// ------------------------------------------------------------
// 1.sprites (friend)
// ------------------------------------------------------------
2011-03-12 21:16:14 +00:00
sprites/friend
{
nomipmaps
{
map sprites/friend1.tga
blendfunc blend
}
}
2020-07-07 22:36:26 +00:00
// ------------------------------------------------------------
// 2.sprites (foe)
// ------------------------------------------------------------
2011-03-12 21:16:14 +00:00
sprites/foe
{
nomipmaps
{
map sprites/foe2.tga
blendfunc blend
}
}
2020-07-07 22:36:26 +00:00
// ------------------------------------------------------------
// 3.flags (b_flag)
// ------------------------------------------------------------
2011-03-12 21:16:14 +00:00
models/flags/b_flag
{
cull disable
deformVertexes wave 80 sin 2 8 0 3
deformVertexes wave 20 square 0 2 0.5 0.2
{
map textures/sfx/proto_zzztblu3.tga
rgbGen identity
tcMod turb 1 1 0.5 0.3
tcGen environment
}
{
map models/flags/b_flag.tga
rgbGen lightingDiffuse
alphaFunc GE128
}
{
map textures/effects/flagenv.tga
blendfunc gl_dst_color gl_src_color
tcGen environment
}
}
2020-07-07 22:36:26 +00:00
// ------------------------------------------------------------
// 4.flags (pole)
// ------------------------------------------------------------
2011-03-12 21:16:14 +00:00
models/flags/pole
{
{
map textures/base_wall/chrome_env.tga
rgbGen lightingDiffuse
tcMod scale 0.5 0.5
tcGen environment
}
{
map models/flags/pole.tga
blendfunc filter
rgbGen identity
}
}
2020-07-07 22:36:26 +00:00
// ------------------------------------------------------------
// 5.flags (r_flag)
// ------------------------------------------------------------
2011-03-12 21:16:14 +00:00
models/flags/r_flag
{
cull disable
deformVertexes wave 80 sin 2 8 0 3
deformVertexes wave 20 square 0 2 0.5 0.2
{
map textures/sfx/proto_zzzt.tga
rgbGen identity
tcMod turb 1 1 0.5 0.3
tcGen environment
}
{
map models/flags/r_flag.tga
rgbGen lightingDiffuse
alphaFunc GE128
}
{
map textures/effects/flagenv.tga
blendfunc gl_dst_color gl_src_color
tcGen environment
}
}
2020-07-07 22:36:26 +00:00
// ------------------------------------------------------------
// 6.teleporter (blue_telep)
// ------------------------------------------------------------
textures/ctf/blue_telep
{
cull disable
surfaceparm nomarks
surfaceparm trans
sort additive
{
clampmap textures/ctf/blue_telep.tga
blendFunc add
//depthWrite
//tcMod stretch sin .9 0.1 0 .5
tcmod rotate 327
rgbGen identity
}
{
clampmap textures/ctf/blue_telep2.tga
blendFunc add
//depthWrite
//tcMod stretch sin .9 0.1 0 .1
tcmod rotate -211
rgbGen identity
}
{
clampmap textures/ctf/telep.tga
alphaFunc GE128
depthWrite
tcmod rotate 20
rgbGen identity
}
{
clampmap textures/ctf/telep.tga
alphaFunc GE128
depthWrite
tcMod stretch sin .7 0 0 0
tcmod rotate -20
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}
2020-07-07 22:36:26 +00:00
// ------------------------------------------------------------
// 7.teleporter (red_telep)
// ------------------------------------------------------------
textures/ctf/red_telep
{
cull disable
surfaceparm nomarks
surfaceparm trans
{
clampmap textures/ctf/red_telep.tga
blendFunc add
//tcMod stretch sin .9 0.1 0 .5
tcmod rotate 327
rgbGen identity
}
{
clampmap textures/ctf/red_telep2.tga
blendFunc add
//tcMod stretch sin .9 0.1 0 .1
tcmod rotate -211
rgbGen identity
}
{
clampmap textures/ctf/telep.tga
alphaFunc GE128
tcmod rotate 20
rgbGen identity
}
{
clampmap textures/ctf/telep.tga
alphaFunc GE128
tcMod stretch sin .7 0 0 0
tcmod rotate -20
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}
2020-07-07 22:36:26 +00:00
// ------------------------------------------------------------
// 8.test2 (test2_trans)
// ------------------------------------------------------------
textures/ctf/test2_trans
{
qer_editorimage textures/ctf/test2.tga
surfaceparm nonsolid
{
map $lightmap
rgbGen identity
}
{
map textures/ctf/test2.tga
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
}
}
2020-07-07 22:36:26 +00:00
// ------------------------------------------------------------
// 9.test2 (test2_r_trans)
// ------------------------------------------------------------
textures/ctf/test2_r_trans
{
qer_editorimage textures/ctf/test2_r.tga
surfaceparm nonsolid
{
map $lightmap
rgbGen identity
}
{
map textures/ctf/test2_r.tga
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
}
}
2020-07-07 22:36:26 +00:00
// ------------------------------------------------------------
// 10.killblockctf_r (blocks15cgeomtrn.tga)
// ------------------------------------------------------------
textures/ctf/killblockctf_r
{
qer_editorimage textures/gothic_block/blocks15cgeomtrn.tga
{
map textures/sfx/fire_ctfred.tga
tcmod scroll 0 1
tcMod turb 0 .25 0 1.6
tcmod scale 2 2
blendFunc GL_ONE GL_ZERO
rgbGen identity
}
{
map textures/gothic_block/blocks18cgeomtrn2.tga
//blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
blendFunc blend
tcmod rotate 30
tcMod stretch sin .8 0.2 0 .2
rgbGen identity
}
{
map textures/gothic_block/blocks18cgeomtrn2.tga
blendFunc blend
tcmod rotate 20
tcMod stretch sin .8 0.2 0 .1
rgbGen identity
}
{
map textures/gothic_block/blocks15cgeomtrn.tga
blendFunc blend
rgbGen identity
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
rgbGen identity
}
}
2020-07-07 22:36:26 +00:00
// ------------------------------------------------------------
// 11.killblockctf_b (killblockgeomtrn.tga)
// ------------------------------------------------------------
textures/ctf/killblockctf_b
{
qer_editorimage textures/gothic_block/killblockgeomtrn.tga
{
map textures/sfx/fire_ctfblue.tga
tcmod scroll 0 1
tcMod turb 0 .25 0 1.6
tcmod scale 2 2
blendFunc GL_ONE GL_ZERO
rgbGen identity
}
{
map textures/gothic_block/blocks18cgeomtrn2.tga
//blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
blendFunc blend
tcmod rotate 30
tcMod stretch sin .8 0.2 0 .2
rgbGen identity
}
{
map textures/gothic_block/blocks18cgeomtrn2.tga
blendFunc blend
tcmod rotate 20
tcMod stretch sin .8 0.2 0 .1
rgbGen identity
}
{
map textures/gothic_block/killblockgeomtrn.tga
blendFunc blend
rgbGen identity
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
rgbGen identity
}
}
2020-07-07 22:36:26 +00:00
// ------------------------------------------------------------
// 12.ctf_arch_b_shiny (ctf_arch_b_shiny)
// ------------------------------------------------------------
textures/ctf/ctf_arch_b_shiny
{
qer_editorimage textures/ctf/ctf_arch_b.tga
{
map textures/ctf/ctf_arch_b.tga
blendFunc GL_ONE GL_ZERO
rgbGen identity
}
{
map textures/sfx/specular.tga
blendFunc GL_ONE GL_ONE
tcGen environment
tcmod scale 10 10
rgbGen identity
}
{
map textures/ctf/ctf_arch_b.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbGen identity
}
{
map $lightmap
blendfunc gl_dst_color gl_zero
rgbGen identity
}
}
textures/ctf/ctf_arch_r_shiny
{
qer_editorimage textures/ctf/ctf_arch_r.tga
{
map textures/ctf/ctf_arch_r.tga
blendFunc GL_ONE GL_ZERO
rgbGen identity
}
{
map textures/sfx/specular.tga
blendFunc GL_ONE GL_ONE
tcGen environment
tcmod scale 10 10
rgbGen identity
}
{
map textures/ctf/ctf_arch_r.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbGen identity
}
{
map $lightmap
blendfunc gl_dst_color gl_zero
rgbGen identity
}
}
textures/gothic_door/door02_bred2_shiny
{
qer_editorimage textures/gothic_door/door02_bred2.tga
{
map $lightmap
rgbGen identity
}
{
map textures/gothic_door/door02_bred2.tga
blendFunc GL_dst_color GL_SRC_ALPHA
alphagen lightingspecular
rgbGen identity
}
}
textures/gothic_door/door02_eblue2_shiny
{
qer_editorimage textures/gothic_door/door02_eblue2.tga
{
map $lightmap
rgbGen identity
}
{
map textures/gothic_door/door02_eblue2.tga
blendFunc GL_dst_color GL_SRC_ALPHA
alphagen lightingspecular
rgbGen identity
}
}
textures/ctf/red_scary4_d3fin
{
{
map $lightmap
rgbGen identity
}
{
map textures/ctf/red_scary4_d3fin.tga
blendFunc GL_dst_color GL_SRC_ALPHA
alphagen lightingspecular
rgbGen identity
}
}
textures/ctf/ctf_tower_bluefin_shiny
{
qer_editorimage textures/ctf/ctf_tower_bluefin.tga
{
map $lightmap
rgbGen identity
}
{
map textures/ctf/ctf_tower_bluefin.tga
blendFunc GL_dst_color GL_SRC_ALPHA
alphagen lightingspecular
rgbGen identity
}
}
textures/ctf/ctf_tower_redfin_shiny
{
qer_editorimage textures/ctf/ctf_tower_redfin.tga
{
map $lightmap
rgbGen identity
}
{
map textures/ctf/ctf_tower_redfin.tga
blendFunc GL_dst_color GL_SRC_ALPHA
alphagen lightingspecular
rgbGen identity
}
}
textures/ctf/metalbase09_bluekillblock_shiny
{
qer_editorimage textures/ctf/metalbase09_bluekillblock.tga
{
map $lightmap
rgbGen identity
}
{
map textures/ctf/metalbase09_bluekillblock.tga
blendFunc GL_dst_color GL_SRC_ALPHA
alphagen lightingspecular
rgbGen identity
}
}
textures/ctf/red_scary4_cfin
{
{
map $lightmap
rgbGen identity
}
{
map textures/ctf/red_scary4_cfin.tga
blendFunc GL_dst_color GL_SRC_ALPHA
alphagen lightingspecular
rgbGen identity
}
}
textures/ctf/red_scary4_csansfacefin
{
{
map $lightmap
rgbGen identity
}
{
map textures/ctf/red_scary4_csansfacefin.tga
blendFunc GL_dst_color GL_SRC_ALPHA
alphagen lightingspecular
rgbGen identity
}
}
textures/ctf/tallblue_2_fin
{
{
map $lightmap
rgbGen identity
}
{
map textures/ctf/tallblue_2_fin.tga
blendFunc GL_dst_color GL_SRC_ALPHA
alphagen lightingspecular
rgbGen identity
}
}
textures/ctf/tallblue_1L_fin_shiny
{
qer_editorimage textures/ctf/tallblue_1L_fin.tga
{
map $lightmap
rgbGen identity
}
{
map textures/ctf/tallblue_1R_fin.tga
blendFunc GL_dst_color GL_SRC_ALPHA
alphagen lightingspecular
rgbGen identity
}
}
textures/ctf/tallblue_1R_fin_shiny
{
qer_editorimage textures/ctf/tallblue_1R_fin.tga
{
map $lightmap
rgbGen identity
}
{
map textures/ctf/tallblue_1R_fin.tga
blendFunc GL_dst_color GL_SRC_ALPHA
alphagen lightingspecular
rgbGen identity
}
}
textures/ctf/tallblue_2b_fin
{
{
map $lightmap
rgbGen identity
}
{
map textures/ctf/tallblue_2b_fin.tga
blendFunc GL_dst_color GL_SRC_ALPHA
alphagen lightingspecular
rgbGen identity
}
}
textures/ctf/tallblue_4c_fin_shiny
{
qer_editorimage textures/ctf/tallblue_4c_fin.tga
{
map $lightmap
rgbGen identity
}
{
map textures/ctf/tallblue_4c_fin.tga
blendFunc GL_dst_color GL_SRC_ALPHA
alphagen lightingspecular
rgbGen identity
}
}
textures/ctf/tallblue_4bsmall_fin
{
{
map $lightmap
rgbGen identity
}
{
map textures/ctf/tallblue_4bsmall_fin.tga
blendFunc GL_dst_color GL_SRC_ALPHA
alphagen lightingspecular
rgbGen identity
}
}
textures/ctf/tallblue_5esmallb_fin
{
{
map $lightmap
rgbGen identity
}
{
map textures/ctf/tallblue_5esmallb_fin.tga
blendFunc GL_dst_color GL_SRC_ALPHA
alphagen lightingspecular
rgbGen identity
}
}
textures/ctf/ctf_blueflag
{
tessSize 64
deformVertexes wave 194 sin 0 3 0 .4
deformVertexes normal .5 .1
surfaceparm nomarks
cull none
{
map textures/ctf/ctf_blueflag.tga
rgbGen identity
}
{
map textures/effects/redflagmap.tga
tcGen environment
tcmod scale 9 3
tcmod scroll .1 .7
blendFunc GL_ONE GL_ONE
rgbGen identity
}
{
map textures/ctf/ctf_blueflag.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbGen identity
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
rgbGen identity
}
{
map textures/sfx/shadow.tga
tcGen environment
//blendFunc GL_ONE GL_ONE
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
}
}
textures/ctf/ctf_redflag
{
tessSize 64
deformVertexes wave 194 sin 0 3 0 .4
deformVertexes normal .3 .2
surfaceparm nomarks
cull none
{
map textures/ctf/ctf_redflag.tga
rgbGen identity
}
{
map textures/effects/blueflagmap.tga
tcGen environment
tcmod scale 9 3
tcmod scroll .1 .7
blendFunc GL_ONE GL_ONE
rgbGen identity
}
{
map textures/ctf/ctf_redflag.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbGen identity
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
rgbGen identity
}
{
map textures/sfx/shadow.tga
tcGen environment
//blendFunc GL_ONE GL_ONE
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
}
}
powerups/redflag
{
deformVertexes wave 100 sin 3 0 0 0
{
map textures/effects/redflagmap.tga
blendfunc GL_ONE GL_ONE
tcGen environment
tcMod turb 0 0.2 0 1
}
}
powerups/blueflag
{
deformVertexes wave 100 sin 3 0 0 0
{
map textures/effects/blueflagmap.tga
blendfunc GL_ONE GL_ONE
tcGen environment
tcMod turb 0 0.2 0 1
}
}
sprites/friend
{
nomipmaps
nopicmip
{
map sprites/friend1.tga
blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}
sprites/foe
{
nomipmaps
nopicmip
{
map sprites/foe2.tga
blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}
//for q3rally,
//this will be the place for ctf decorations eg) banners, curtains, etc.
//used the q3r logo as base
//to be completed by devteam --thebigbuu
//////////
//decals//
//////////
textures/q3r_ctf/q3r_bluelong_decal
{
2020-07-07 22:36:26 +00:00
qer_editorimage textures/ctf/q3r_bannerbluelong.tga
surfaceparm nolightmap
surfaceparm nomarks
polygonoffset
{
2020-07-07 22:36:26 +00:00
map textures/ctf/q3r_bannerbluelong.tga
}
}
textures/q3r_ctf/q3r_redlong_decal
{
2020-07-07 22:36:26 +00:00
qer_editorimage textures/ctf/q3r_bannerredlong.tga
surfaceparm nolightmap
surfaceparm nomarks
polygonoffset
{
2020-07-07 22:36:26 +00:00
map textures/ctf/q3r_bannerredlong.tga
}
}
////////////////
//wavy banners//
////////////////
textures/q3r_ctf/q3r_bluelong_01
{
2020-07-07 22:36:26 +00:00
qer_editorimage textures/ctf/q3r_bannerbluelong.tga
deformVertexes wave sin 0 1 0 .1
surfaceparm nolightmap
surfaceparm nomarks
polygonoffset
{
2020-07-07 22:36:26 +00:00
map textures/ctf/q3r_bannerbluelong.tga
}
}
textures/q3r_ctf/q3r_redlong_01
{
2020-07-07 22:36:26 +00:00
qer_editorimage textures/ctf/q3r_bannerredlong.tga
deformVertexes wave sin 0 1 0 .1
surfaceparm nolightmap
surfaceparm nomarks
2020-07-07 22:36:26 +00:00
polygonoffset
{
2020-07-07 22:36:26 +00:00
map textures/ctf/q3r_bannerredlong.tga
}
2020-07-07 22:36:26 +00:00
}