From: Maik Merten Date: Sat, 23 Oct 2010 08:53:04 +0000 (+0200) Subject: introduce floor-grate04-cull texture variant with default front/backface culling... X-Git-Tag: xonotic-v0.1.0preview~72^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ee7553dcdc2cb37cbb0e3552b55738b36880ca2f;p=xonotic%2Fxonotic-maps.pk3dir.git introduce floor-grate04-cull texture variant with default front/backface culling and use it on glowplant where grates otherwise get waaaay too much light "from behind" --- diff --git a/maps/glowplant.map b/maps/glowplant.map index 65029870..31d54fb8 100644 --- a/maps/glowplant.map +++ b/maps/glowplant.map @@ -6962,7 +6962,7 @@ map_glowplant/biolumi2_blue-lowlight { ( 448 464 64 ) ( 320 464 64 ) ( 320 448 64 ) common/weapclip 0 0 0 0.25 0.25 134217728 5 0 ( 368 448 192 ) ( 368 464 192 ) ( 496 464 192 ) common/weapclip 0 0 0 0.25 0.25 134217728 5 0 -( 320 448 256 ) ( 448 448 256 ) ( 448 448 64 ) exx/floor-grate01 0 0 0 0.25 0.25 134217728 256 0 +( 320 448 256 ) ( 448 448 256 ) ( 448 448 64 ) exx/floor-grate01-cull 0 0 0 0.25 0.25 134217728 256 0 ( 448 448 256 ) ( 448 464 256 ) ( 448 464 64 ) common/weapclip 0 0 0 0.25 0.25 134217728 5 0 ( 448 464 256 ) ( 320 464 256 ) ( 320 464 64 ) common/weapclip 0 0 0 0.25 0.25 134217728 5 0 ( 320 464 256 ) ( 320 448 256 ) ( 320 448 64 ) common/weapclip 0 0 0 0.25 0.25 134217728 5 0 @@ -8212,7 +8212,7 @@ exx/base-metal01 { ( -168 -216 -48 ) ( -168 -288 -48 ) ( -168 -288 -184 ) common/weapclip 0 0 0 0.25 0.25 134217728 5 0 ( -160 -208 -56 ) ( -168 -208 -56 ) ( -168 -208 -192 ) common/weapclip 64 0 0 0.25 0.25 134217728 5 0 -( -160 -272 -56 ) ( -160 -200 -56 ) ( -160 -200 -192 ) exx/floor-grate01 426 146 0 -0.1875 0.2187499851 134217728 256 0 +( -160 -272 -56 ) ( -160 -200 -56 ) ( -160 -200 -192 ) exx/floor-grate01-cull 426 146 0 -0.1875 0.2187499851 134217728 256 0 ( -168 -304 -56 ) ( -160 -304 -56 ) ( -160 -304 -192 ) common/weapclip 64 0 0 0.25 0.25 134217728 5 0 ( -168 -288 -80 ) ( -168 -216 -80 ) ( -160 -216 -80 ) common/weapclip 64 0 0 0.25 0.25 134217728 5 0 ( -160 -216 -192 ) ( -168 -216 -192 ) ( -168 -288 -192 ) common/weapclip 64 0 0 0.25 0.25 134217728 5 0 @@ -8221,7 +8221,7 @@ exx/base-metal01 ( -160 296 -192 ) ( -168 296 -192 ) ( -168 224 -192 ) common/weapclip 64 0 0 0.25 0.25 134217728 5 0 ( -168 224 -80 ) ( -168 296 -80 ) ( -160 296 -80 ) common/weapclip 64 0 0 0.25 0.25 134217728 5 0 ( -168 208 -56 ) ( -160 208 -56 ) ( -160 208 -192 ) common/weapclip 64 0 0 0.25 0.25 134217728 5 0 -( -160 240 -56 ) ( -160 312 -56 ) ( -160 312 -192 ) exx/floor-grate01 85 146 0 -0.1875 0.2187499851 134217728 256 0 +( -160 240 -56 ) ( -160 312 -56 ) ( -160 312 -192 ) exx/floor-grate01-cull 85 146 0 -0.1875 0.2187499851 134217728 256 0 ( -160 304 -56 ) ( -168 304 -56 ) ( -168 304 -192 ) common/weapclip 64 0 0 0.25 0.25 134217728 5 0 ( -168 296 -48 ) ( -168 224 -48 ) ( -168 224 -184 ) common/weapclip 0 0 0 0.25 0.25 134217728 5 0 } @@ -8501,7 +8501,7 @@ exx/base-metal01 ( 400 160 -176 ) ( 288 160 -176 ) ( 288 160 -256 ) common/weapclip 192 0 0 0.25 0.25 134217728 5 0 ( 400 -160 -176 ) ( 400 144 -176 ) ( 400 144 -256 ) common/weapclip 0 0 0 0.25 0.25 134217728 5 0 ( 288 -160 -176 ) ( 400 -160 -176 ) ( 400 -160 -256 ) common/weapclip 192 0 0 0.25 0.25 134217728 5 0 -( 288 -160 -192 ) ( 288 144 -192 ) ( 400 144 -192 ) exx/floor-grate04 192 0 0 0.25 0.25 134217728 256 0 +( 288 -160 -192 ) ( 288 144 -192 ) ( 400 144 -192 ) exx/floor-grate04-cull 192 0 0 0.25 0.25 134217728 256 0 ( 400 164 -196 ) ( 288 164 -196 ) ( 288 -140 -196 ) common/weapclip 192 0 0 0.25 0.25 134217728 5 0 } { @@ -22218,7 +22218,7 @@ exx/panel-metalbig04b } { ( 896 1008 208 ) ( 768 1008 208 ) ( 768 976 208 ) common/weapclip 0 192 0 0.25 0.25 134217728 0 0 -( 848 976 80 ) ( 848 976 64 ) ( 752 976 64 ) exx/floor-grate01 0 64 0 0.25 0.25 134217728 256 0 +( 848 976 80 ) ( 848 976 64 ) ( 752 976 64 ) exx/floor-grate01-cull 0 64 0 0.25 0.25 134217728 256 0 ( 704 1008 272 ) ( 704 1008 -16 ) ( 704 976 -16 ) common/weapclip 64 192 0 0.25 0.25 134217728 0 0 ( 1088 984 272 ) ( 576 984 272 ) ( 1088 984 -16 ) common/weapclip 0 192 0 0.25 0.25 134217728 0 0 ( 576 992 192 ) ( 576 960 192 ) ( 576 960 176 ) common/weapclip 64 192 0 0.25 0.25 134217728 0 0 diff --git a/scripts/exx.shader b/scripts/exx.shader index 74a3031e..08886914 100644 --- a/scripts/exx.shader +++ b/scripts/exx.shader @@ -418,6 +418,30 @@ textures/exx/floor-grate01 dpglossexponentmod 4 + { + map textures/exx/floor/floor_grate01.tga + alphaFunc GT0 + } + { + map $lightmap + rgbGen identity + tcGen lightmap + blendfunc filter + } +} +textures/exx/floor-grate01-cull +{ + qer_editorimage textures/exx/floor/floor_grate01.tga + surfaceparm trans + surfaceparm metalsteps + q3map_bounceScale 0.75 + surfaceparm alphashadow + surfaceparm nomarks + dpoffsetmapping - 2 + dpglossintensitymod 3 + dpglossexponentmod 4 + + { map textures/exx/floor/floor_grate01.tga alphaFunc GT0