From: Rudolf Polzer <divverent@alientrap.org>
Date: Sun, 7 Nov 2010 13:07:37 +0000 (+0100)
Subject: zfightometer: use polygonoffset for the _decal
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2FdivVerent%2Ftest%2Fzfightometer;p=xonotic%2Fxonotic-maps.pk3dir.git

zfightometer: use polygonoffset for the _decal
---

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
+	}
+}