Add alpha channeles to decals (avoids teh mysterios rtlight gloss)
authorJakob MG <jakob_mg@hotmail.com>
Tue, 25 May 2010 14:10:41 +0000 (16:10 +0200)
committerJakob MG <jakob_mg@hotmail.com>
Tue, 25 May 2010 14:10:41 +0000 (16:10 +0200)
Use blendFunc filter in shader (aparently it works now)

scripts/decals.shader
textures/decals/scorch02.tga
textures/decals/splatter01.tga
textures/decals/splatter02.tga
textures/decals/splatter03.tga
textures/decals/splatter04.tga
textures/decals/splatter05.tga

index ce600a0..1bcc797 100644 (file)
@@ -2,50 +2,42 @@ textures/decals/scorch01
 {\r
        qer_editorimage textures/decals/scorch01\r
 \r
-       noPicMip\r
-       noMipMaps\r
        surfaceparm trans\r
        surfaceparm nonsolid\r
        surfaceparm nodlight\r
+       surfaceparm nolightmap\r
+\r
        polygonOffset\r
        sort 6\r
        cull none\r
 \r
        {\r
                map textures/decals/scorch01\r
-               blendFunc GL_DST_COLOR GL_SRC_COLOR\r
+               blendFunc filter\r
                rgbgen identity\r
        }\r
-\r
-       {\r
-               map $lightmap\r
-               blendFunc GL_ZERO GL_ONE\r
-       }\r
 }\r
 \r
 textures/decals/scorch02\r
 {\r
        qer_editorimage textures/decals/scorch02\r
 \r
-       noPicMip\r
-       noMipMaps\r
        surfaceparm trans\r
        surfaceparm nonsolid\r
        surfaceparm nodlight\r
+       surfaceparm nolightmap\r
+\r
        polygonOffset\r
        sort 6\r
        cull none\r
 \r
+\r
        {\r
                map textures/decals/scorch02\r
-               blendFunc GL_DST_COLOR GL_SRC_COLOR\r
+               blendFunc filter\r
                rgbgen identity\r
        }\r
 \r
-       {\r
-               map $lightmap\r
-               blendFunc GL_ZERO GL_ONE\r
-       }\r
 }\r
 \r
 \r
@@ -54,16 +46,18 @@ textures/decals/splatter01
        qer_editorimage textures/decals/splatter01\r
 \r
        surfaceparm trans\r
-       surfaceparm nolightmap\r
        surfaceparm nonsolid\r
        surfaceparm nodlight\r
+       surfaceparm nolightmap\r
+\r
        polygonOffset\r
        sort 6\r
        cull none\r
 \r
+\r
        {\r
                map textures/decals/splatter01\r
-               blendFunc GL_DST_COLOR GL_SRC_COLOR\r
+               blendFunc filter\r
                rgbgen identity\r
        }\r
 }\r
@@ -73,16 +67,18 @@ textures/decals/splatter02
        qer_editorimage textures/decals/splatter02\r
 \r
        surfaceparm trans\r
-       surfaceparm nolightmap\r
        surfaceparm nonsolid\r
        surfaceparm nodlight\r
+       surfaceparm nolightmap\r
+\r
        polygonOffset\r
        sort 6\r
        cull none\r
 \r
+\r
        {\r
                map textures/decals/splatter02\r
-               blendFunc GL_DST_COLOR GL_SRC_COLOR\r
+               blendFunc filter\r
                rgbgen identity\r
        }\r
 }\r
@@ -91,16 +87,19 @@ textures/decals/splatter03
        qer_editorimage textures/decals/splatter03\r
 \r
        surfaceparm trans\r
-       surfaceparm nolightmap\r
        surfaceparm nonsolid\r
        surfaceparm nodlight\r
+       surfaceparm nolightmap\r
+\r
        polygonOffset\r
        sort 6\r
        cull none\r
 \r
+\r
+\r
        {\r
                map textures/decals/splatter03\r
-               blendFunc GL_DST_COLOR GL_SRC_COLOR\r
+               blendFunc filter\r
                rgbgen identity\r
        }\r
 }\r
@@ -110,16 +109,18 @@ textures/decals/splatter04
        qer_editorimage textures/decals/splatter04\r
 \r
        surfaceparm trans\r
-       surfaceparm nolightmap\r
        surfaceparm nonsolid\r
        surfaceparm nodlight\r
+       surfaceparm nolightmap\r
+\r
        polygonOffset\r
        sort 6\r
        cull none\r
 \r
+\r
        {\r
                map textures/decals/splatter04\r
-               blendFunc GL_DST_COLOR GL_SRC_COLOR\r
+               blendFunc filter\r
                rgbgen identity\r
        }\r
 }\r
@@ -129,16 +130,18 @@ textures/decals/splatter05
        qer_editorimage textures/decals/splatter05\r
 \r
        surfaceparm trans\r
-       surfaceparm nolightmap\r
        surfaceparm nonsolid\r
        surfaceparm nodlight\r
+       surfaceparm nolightmap\r
+\r
        polygonOffset\r
        sort 6\r
        cull none\r
 \r
+\r
        {\r
                map textures/decals/splatter05\r
-               blendFunc GL_DST_COLOR GL_SRC_COLOR\r
+               blendFunc filter\r
                rgbgen identity\r
        }\r
 }\r
index f7d2aed..26e7356 100644 (file)
Binary files a/textures/decals/scorch02.tga and b/textures/decals/scorch02.tga differ
index 1b6fcfb..9c272d8 100644 (file)
Binary files a/textures/decals/splatter01.tga and b/textures/decals/splatter01.tga differ
index 14f0a2c..4be06e5 100644 (file)
Binary files a/textures/decals/splatter02.tga and b/textures/decals/splatter02.tga differ
index c600c36..793ef69 100644 (file)
Binary files a/textures/decals/splatter03.tga and b/textures/decals/splatter03.tga differ
index fd58eba..2a27f52 100644 (file)
Binary files a/textures/decals/splatter04.tga and b/textures/decals/splatter04.tga differ
index 022a492..a1766f6 100644 (file)
Binary files a/textures/decals/splatter05.tga and b/textures/decals/splatter05.tga differ