From efb223c3dd34dfe17198e43b918ee48ce73a07ee Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 7 Nov 2010 14:07:37 +0100 Subject: [PATCH] zfightometer: use polygonoffset for the _decal --- maps/zfightometer.map | 8 ++++---- scripts/map_zfightometer.shader | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 scripts/map_zfightometer.shader diff --git a/maps/zfightometer.map b/maps/zfightometer.map index 115f2ab9..402a6418 100644 --- a/maps/zfightometer.map +++ b/maps/zfightometer.map @@ -1482,12 +1482,12 @@ { patchDef2 { -facility114x/base-base +map_zfightometer/base-base ( 3 3 0 0 0 ) ( -( ( -64 -128 256 0 0 ) ( -64 -128 320 0 -1 ) ( -64 -128 384 0 -2 ) ) -( ( 0 -128 256 0.25 0 ) ( 0 -128 320 0.25 -1 ) ( 0 -128 384 0.25 -2 ) ) -( ( 64 -128 256 0.5 0 ) ( 64 -128 320 0.5 -1 ) ( 64 -128 384 0.5 -2 ) ) +( ( -64 -128 256 0 0 ) ( -64 -128 320 0 -0.5 ) ( -64 -128 384 0 -1 ) ) +( ( 0 -128 256 0.5 0 ) ( 0 -128 320 0.5 -0.5 ) ( 0 -128 384 0.5 -1 ) ) +( ( 64 -128 256 1 0 ) ( 64 -128 320 1 -0.5 ) ( 64 -128 384 1 -1 ) ) ) } } diff --git a/scripts/map_zfightometer.shader b/scripts/map_zfightometer.shader new file mode 100644 index 00000000..44ba0dff --- /dev/null +++ b/scripts/map_zfightometer.shader @@ -0,0 +1,20 @@ +textures/map_zfightometer/base-base +{ + qer_editorimage textures/facility114x/base/base.tga + + q3map_bounceScale 1.25 + polygonoffset + + + { + map textures/facility114x/base/base.tga + + + } + { + map $lightmap + rgbGen identity + tcGen lightmap + blendfunc filter + } +} -- 2.39.2