From: MirceaKitsune Date: Tue, 15 Nov 2011 13:55:13 +0000 (+0200) Subject: Add shader for gibs, and make gibs ignore decals. Should improve performance when... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a16cb171434925b79dca87761a94314fcbac78a9;p=voretournament%2Fvoretournament.git Add shader for gibs, and make gibs ignore decals. Should improve performance when "Decals on models" is on, though the engine doesn't seem to handle this properly yet --- diff --git a/data/scripts/gibs.shader b/data/scripts/gibs.shader new file mode 100644 index 00000000..c1c40e57 --- /dev/null +++ b/data/scripts/gibs.shader @@ -0,0 +1,111 @@ +meat +{ + surfaceparm nomarks + { + map textures/meat + } + { + map $lightmap + } +} + +meat_alien +{ + surfaceparm nomarks + { + map textures/meat_alien + } + { + map $lightmap + } +} + +meat_robot +{ + surfaceparm nomarks + { + map textures/meat_robot + } + { + map $lightmap + } +} + +eyeblood +{ + surfaceparm nomarks + { + map textures/eyeblood + } + { + map $lightmap + } +} + +nutsandbolts1 +{ + surfaceparm nomarks + { + map textures/nutsandbolts1 + } + { + map $lightmap + } +} + +nutsandbolts3 +{ + surfaceparm nomarks + { + map textures/nutsandbolts3 + } + { + map $lightmap + } +} + +nutsandbolts4 +{ + surfaceparm nomarks + { + map textures/nutsandbolts4 + } + { + map $lightmap + } +} + +nutsandbolts5 +{ + surfaceparm nomarks + { + map textures/nutsandbolts5 + } + { + map $lightmap + } +} + +nutsandboltssteel +{ + surfaceparm nomarks + { + map textures/nutsandbolts3 + tcgen environment + } + { + map $lightmap + } +} + +models/gibs/chunk.mdl_0 +{ + surfaceparm nomarks + { + map models/gibs/chunk.mdl_0 + tcgen environment + } + { + map $lightmap + } +} diff --git a/data/scripts/shaderlist.txt b/data/scripts/shaderlist.txt index 030f1156..3665fe8d 100644 --- a/data/scripts/shaderlist.txt +++ b/data/scripts/shaderlist.txt @@ -2,6 +2,7 @@ blacksky cel common items +gibs desertfactory domination dsi