mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2024-11-28 14:42:33 +00:00
cb1a03e5f2
q3r_babel, as it turns out, does not really fit into Deathmatch mode. q3r_babel is now only a DOM map.
483 lines
No EOL
8.3 KiB
GLSL
483 lines
No EOL
8.3 KiB
GLSL
// ------------------------------------------------------------
|
|
// Shaders for Q3Rally mapobjects - rewritten by P3rlE
|
|
// based on mapobjects.shader from quake3rally
|
|
// ------------------------------------------------------------
|
|
|
|
//================
|
|
// watertower
|
|
//================
|
|
|
|
models/mapobjects/watertower/plate01
|
|
|
|
{
|
|
{
|
|
map textures/effects/tinfx2d.tga
|
|
tcGen environment
|
|
rgbGen identity
|
|
}
|
|
|
|
|
|
{
|
|
map textures/q3r_metals/plate01.tga
|
|
blendfunc GL_ONE GL_SRC_COLOR
|
|
rgbGen vertex
|
|
}
|
|
|
|
}
|
|
|
|
models/mapobjects/watertower/plate02
|
|
|
|
{
|
|
{
|
|
map textures/effects/tinfx2d.tga
|
|
tcGen environment
|
|
rgbGen identity
|
|
}
|
|
|
|
|
|
{
|
|
map textures/q3r_metals/plate01.tga
|
|
blendfunc GL_ONE GL_SRC_COLOR
|
|
rgbGen vertex
|
|
}
|
|
|
|
}
|
|
|
|
|
|
models/mapobjects/watertower/ferris
|
|
|
|
{
|
|
{
|
|
map textures/effects/tinfx2d.tga
|
|
tcGen environment
|
|
rgbGen identity
|
|
}
|
|
|
|
|
|
{
|
|
map models/mapobjects/watertower/ferris.tga
|
|
blendfunc GL_ONE GL_SRC_COLOR
|
|
rgbGen vertex
|
|
}
|
|
|
|
|
|
}
|
|
|
|
models/mapobjects/watertower/rail01
|
|
{
|
|
cull disable
|
|
surfaceparm alphashadow
|
|
surfaceparm playerclip
|
|
{
|
|
map textures/q3r_metals/rail01.tga
|
|
blendFunc blend
|
|
alphaFunc GE128
|
|
depthWrite
|
|
rgbGen vertex
|
|
}
|
|
{
|
|
map $lightmap
|
|
rgbGen identity
|
|
blendFunc GL_DST_COLOR GL_ZERO
|
|
depthFunc equal
|
|
}
|
|
|
|
}
|
|
|
|
models/mapobjects/watertower/walkway01
|
|
|
|
{
|
|
cull disable
|
|
|
|
{
|
|
map models/mapobjects/watertower/walkway01.tga
|
|
rgbGen vertex
|
|
}
|
|
}
|
|
|
|
//==========
|
|
// UFO
|
|
//==========
|
|
|
|
models/mapobjects/ufo/ufo01
|
|
|
|
{
|
|
{
|
|
map textures/reflect/reflect.jpg
|
|
tcGen environment
|
|
rgbGen identity
|
|
}
|
|
|
|
|
|
{
|
|
map models/mapobjects/ufo/ufo01glow.tga
|
|
tcMod scroll 2.1 0
|
|
rgbGen wave sin 1 1 .5 .1
|
|
}
|
|
{
|
|
map models/mapobjects/ufo/ufo01glow.tga
|
|
tcMod scroll 1.4 0
|
|
blendFunc add
|
|
rgbGen wave square 1 1 .5 2
|
|
}
|
|
{
|
|
map models/mapobjects/ufo/ufo01glow.tga
|
|
tcMod scroll -.9 0
|
|
blendFunc add
|
|
rgbGen wave square 1 1 .25 .5
|
|
}
|
|
|
|
{
|
|
map models/mapobjects/ufo/ufo01.tga
|
|
blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
|
|
rgbGen vertex
|
|
}
|
|
|
|
}
|
|
|
|
|
|
models/mapobjects/ufo/ufo02
|
|
|
|
{
|
|
{
|
|
map textures/reflect/reflect.jpg
|
|
tcGen environment
|
|
rgbGen identity
|
|
}
|
|
|
|
{
|
|
map models/mapobjects/ufo/ufo02.tga
|
|
blendfunc GL_ONE GL_SRC_COLOR
|
|
rgbGen vertex
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
models/mapobjects/ufo/ufo03
|
|
|
|
{
|
|
|
|
|
|
{
|
|
map textures/reflect/reflect.jpg
|
|
tcGen environment
|
|
rgbGen identity
|
|
}
|
|
|
|
|
|
{
|
|
map models/mapobjects/ufo/ufo03.tga
|
|
blendfunc GL_ONE GL_SRC_COLOR
|
|
rgbGen vertex
|
|
}
|
|
|
|
}
|
|
|
|
models/mapobjects/q3rtitle/q3rtitle_w
|
|
{
|
|
{
|
|
map textures/effects/envmapred.tga
|
|
// map textures/sfx/fire_ctfred.jpg
|
|
// map models/barrels/chrometest2.jpg
|
|
// map textures/effects/tinfx2c.tga
|
|
// map textures/sfx/specular.tga
|
|
tcmod rotate 011
|
|
tcmod scroll .1 .01
|
|
tcGen environment
|
|
}
|
|
}
|
|
|
|
models/mapobjects/q3rtitle/q3rtitle
|
|
{
|
|
{
|
|
map models/mapobjects/q3rtitle/q3rtitle_b.jpg
|
|
|
|
}
|
|
}
|
|
|
|
models/mapobjects/barrels/b_lite
|
|
|
|
{
|
|
{
|
|
map models/mapobjects/barrels/b_lite.tga
|
|
rgbGen identity
|
|
}
|
|
{
|
|
map models/mapobjects/barrels/b_lite_g.tga
|
|
blendfunc add
|
|
rgbGen wave sin .6 1 0 .5
|
|
}
|
|
}
|
|
|
|
models/mapobjects/barrels/b_top03
|
|
|
|
{
|
|
{
|
|
map models/mapobjects/barrels/b_top03.tga
|
|
rgbGen identity
|
|
}
|
|
{
|
|
map models/mapobjects/barrels/b_top03_g.tga
|
|
blendfunc add
|
|
rgbGen wave sin .3 1 0 .5
|
|
}
|
|
}
|
|
|
|
//=====================================
|
|
// leave this in for replacement model
|
|
//=====================================
|
|
|
|
|
|
models/mapobjects/spotlamp/spotlamp
|
|
{
|
|
cull disable
|
|
surfaceparm alphashadow
|
|
{
|
|
map models/mapobjects/spotlamp/spotlamp.tga
|
|
alphaFunc GE128
|
|
depthWrite
|
|
rgbGen vertex
|
|
}
|
|
|
|
|
|
}
|
|
models/mapobjects/spotlamp/beam
|
|
{
|
|
surfaceparm trans
|
|
surfaceparm nomarks
|
|
surfaceparm nonsolid
|
|
surfaceparm nolightmap
|
|
cull none
|
|
nomipmaps
|
|
{
|
|
map models/mapobjects/spotlamp/beam.tga
|
|
tcMod Scroll .3 0
|
|
blendFunc GL_ONE GL_ONE
|
|
}
|
|
//{
|
|
// map models/mapobjects/spotlamp/beam.tga
|
|
// tcMod Scroll -.3 0
|
|
// blendFunc GL_ONE GL_ONE
|
|
//}
|
|
|
|
}
|
|
models/mapobjects/spotlamp/spotlamp_l
|
|
|
|
{
|
|
cull disable
|
|
q3map_surfacelight 200
|
|
|
|
{
|
|
map models/mapobjects/spotlamp/spotlamp_l.tga
|
|
rgbGen identity
|
|
}
|
|
|
|
|
|
}
|
|
|
|
models/mapobjects/barrel/barrel2
|
|
{
|
|
|
|
{
|
|
Map models/mapobjects/barrel/barrel2.tga
|
|
rgbgen vertex
|
|
|
|
}
|
|
{
|
|
clampmap models/mapobjects/barrel/barrel2fx.tga
|
|
blendFunc GL_ONE GL_ONE
|
|
// rgbgen wave triangle 1 1.4 0 9.5
|
|
tcMod rotate 403
|
|
}
|
|
{
|
|
clampmap models/mapobjects/barrel/barrel2fx.tga
|
|
blendFunc GL_ONE GL_ONE
|
|
// rgbgen wave triangle 1 1 0 8.7
|
|
tcMod rotate -100
|
|
}
|
|
|
|
}
|
|
|
|
//==========
|
|
// SPOTLAMP
|
|
//==========
|
|
|
|
models/mapobjects/spotlamp/beam
|
|
{
|
|
surfaceparm trans
|
|
surfaceparm nomarks
|
|
surfaceparm nonsolid
|
|
surfaceparm nolightmap
|
|
cull none
|
|
nomipmaps
|
|
{
|
|
map models/mapobjects/spotlamp/beam.tga
|
|
tcMod Scroll .3 0
|
|
blendfunc add
|
|
}
|
|
}
|
|
|
|
models/mapobjects/spotlamp/spotlamp
|
|
{
|
|
cull disable
|
|
surfaceparm alphashadow
|
|
{
|
|
map models/mapobjects/spotlamp/spotlamp.tga
|
|
alphaFunc GT0
|
|
depthWrite
|
|
rgbGen vertex
|
|
}
|
|
}
|
|
|
|
models/mapobjects/spotlamp/spotlamp_l
|
|
{
|
|
cull disable
|
|
q3map_surfacelight 200
|
|
{
|
|
map models/mapobjects/spotlamp/spotlamp_l.tga
|
|
rgbGen identity
|
|
}
|
|
}
|
|
|
|
// ------------------------------------------------------------
|
|
// Trees from q3r_ctf_01
|
|
// ------------------------------------------------------------
|
|
|
|
models/mapobjects/GR_trees/nadel
|
|
{
|
|
{
|
|
map models/mapobjects/GR_trees/nadel.tga
|
|
alphaFunc GE128
|
|
rgbGen exactVertex
|
|
}
|
|
}
|
|
|
|
models/mapobjects/GR_trees/nadelsnow
|
|
{
|
|
{
|
|
map models/mapobjects/GR_trees/nadelsnow.tga
|
|
alphaFunc GE128
|
|
rgbGen exactVertex
|
|
}
|
|
}
|
|
|
|
models/mapobjects/GR_trees/tree
|
|
{
|
|
{
|
|
map models/mapobjects/GR_trees/tree.tga
|
|
alphaFunc GE128
|
|
rgbGen exactVertex
|
|
}
|
|
}
|
|
|
|
models/mapobjects/GR_trees/tree3
|
|
{
|
|
{
|
|
map models/mapobjects/GR_trees/tree3.tga
|
|
alphaFunc GE128
|
|
rgbGen exactVertex
|
|
}
|
|
}
|
|
|
|
models/mapobjects/GR_trees/tree4
|
|
{
|
|
{
|
|
map models/mapobjects/GR_trees/tree4.tga
|
|
alphaFunc GE128
|
|
rgbGen exactVertex
|
|
}
|
|
}
|
|
|
|
models/mapobjects/GR_trees/tree6
|
|
{
|
|
{
|
|
map models/mapobjects/GR_trees/tree6.tga
|
|
alphaFunc GE128
|
|
rgbGen exactVertex
|
|
}
|
|
}
|
|
|
|
models/mapobjects/oak/oakblaetter
|
|
{
|
|
{
|
|
map models/mapobjects/oak/oakblaetter.tga
|
|
alphaFunc GE128
|
|
rgbGen exactVertex
|
|
}
|
|
}
|
|
|
|
models/mapobjects/oak/oakblaetter2
|
|
{
|
|
{
|
|
map models/mapobjects/oak/oakblaetter2.tga
|
|
alphaFunc GE128
|
|
rgbGen exactVertex
|
|
}
|
|
}
|
|
|
|
models/mapobjects/oak/oakblaetter3
|
|
{
|
|
{
|
|
map models/mapobjects/oak/oakblaetter3.tga
|
|
alphaFunc GE128
|
|
rgbGen exactVertex
|
|
}
|
|
}
|
|
|
|
models/mapobjects/carmodels/reaper/main
|
|
{
|
|
{
|
|
map models/mapobjects/carmodels/reaper/main.tga
|
|
rgbGen exactVertex
|
|
}
|
|
}
|
|
|
|
models/mapobjects/carmodels/reaper/parts
|
|
{
|
|
{
|
|
map models/mapobjects/carmodels/reaper/parts.tga
|
|
rgbGen exactVertex
|
|
}
|
|
}
|
|
|
|
models/mapobjects/carmodels/reaper/tlites
|
|
{
|
|
{
|
|
map models/mapobjects/carmodels/reaper/tlites.tga
|
|
rgbGen exactVertex
|
|
}
|
|
}
|
|
|
|
models/mapobjects/carmodels/sidepipe/orange
|
|
{
|
|
{
|
|
map models/mapobjects/carmodels/sidepipe/orange.tga
|
|
rgbGen exactVertex
|
|
}
|
|
}
|
|
|
|
models/mapobjects/videocamera/videocamerasupport
|
|
{
|
|
cull disable
|
|
surfaceparm alphashadow
|
|
{
|
|
map models/mapobjects/videocamera/videocamerasupport.tga
|
|
alphaFunc GE128
|
|
depthWrite
|
|
rgbGen vertex
|
|
}
|
|
}
|
|
|
|
models/mapobjects/skel/skel
|
|
{
|
|
cull disable
|
|
surfaceparm alphashadow
|
|
{
|
|
map models/mapobjects/skel/skel.tga
|
|
alphaFunc GE128
|
|
rgbGen exactVertex
|
|
}
|
|
} |