diff options
author | Mikko Tiusanen <ams@daug.net> | 2014-05-04 01:18:52 +0300 |
---|---|---|
committer | Mikko Tiusanen <ams@daug.net> | 2014-05-04 01:18:52 +0300 |
commit | 01beb9919b95479d8be040bec74abc5cc67a5e43 (patch) | |
tree | 65f0b79e793848491832756a4c3a32b23668fab3 /assets/scripts/system_marks.shader | |
parent | 191d731da136b7ee959a17e63111c9146219a768 (diff) |
Initial import.
Diffstat (limited to 'assets/scripts/system_marks.shader')
-rw-r--r-- | assets/scripts/system_marks.shader | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/assets/scripts/system_marks.shader b/assets/scripts/system_marks.shader new file mode 100644 index 0000000..7a1efb5 --- /dev/null +++ b/assets/scripts/system_marks.shader @@ -0,0 +1,66 @@ +// markShadow is the very cheap blurry blob underneath the player +gfx/marks/shadow +{ + polygonOffset + { + map gfx/marks/shadow.tga + blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA + rgbGen vertex + alphaGen vertex + } +} + +// wake is the mark on water surfaces for paddling players +gfx/marks/wake +{ + polygonOffset + { + clampmap gfx/marks/splash.tga + blendFunc GL_ONE GL_ONE + rgbGen vertex + tcmod rotate 250 + tcMod stretch sin .9 0.1 0 0.7 + rgbGen wave sin .7 .3 .25 .5 + } + { + clampmap gfx/marks/splash.tga + blendFunc GL_ONE GL_ONE + rgbGen vertex + tcmod rotate -230 + tcMod stretch sin .9 0.05 0 0.9 + rgbGen wave sin .7 .3 .25 .4 + } +} + +gfx/marks/bullet_mrk +{ + polygonOffset + { + map gfx/marks/bullet_mrk.tga + blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR + rgbGen exactVertex + } +} + +gfx/marks/burn_mrk +{ + polygonOffset + { + map gfx/marks/burn_mrk.tga + blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR + rgbGen exactVertex + } +} + +gfx/marks/plasma_mrk +{ + polygonOffset + { + map gfx/marks/plasma_mrk.tga + blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA + rgbGen vertex + alphaGen vertex + } +} + + |