From: MirceaKitsune Date: Mon, 20 Sep 2010 17:00:51 +0000 (+0300) Subject: Greatwall revisited shader X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=823089ddd1353b9fe78eb5fe5599c9241973dff0;p=voretournament%2Fvoretournament.git Greatwall revisited shader --- diff --git a/data/scripts/greatwall_revisited.shader b/data/scripts/greatwall_revisited.shader new file mode 100644 index 00000000..1e2cd71c --- /dev/null +++ b/data/scripts/greatwall_revisited.shader @@ -0,0 +1,363 @@ +textures/gw_rev/sky +{ + qer_editorimage env/exosystem/exosystem_up.tga + + surfaceparm nolightmap + surfaceparm noimpact + surfaceparm nomarks + surfaceparm sky + + skyparms env/exosystem/exosystem - - + q3map_surfacelight 200 + q3map_lightimage textures/exosystem/exosystem_up.tga + q3map_sun .8 .7 0.2 100 60 45 +} + +textures/gw_rev/dp2terrain +{ + qer_editorimage textures/terrain_dotproduct2/grass01-rock05 + q3map_globalTexture + q3map_nonplanar + q3map_shadeangle 90 + q3map_lightmapSampleOffset 10 + surfaceparm dust + q3map_alphaMod dotproduct2 ( 0.0 0.0 0.9 ) + + { + map textures/gw_rev/rock.tga // Primary + tcMod scale 10 10 + } + + { + map textures/gw_rev/grass.tga // Secondary + blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA + alphaGen vertex + tcMod scale 10 10 + } + + { + map $lightmap + blendFunc GL_DST_COLOR GL_ZERO + } +} + +textures/gw_rev/dp2detail +{ + qer_editorimage textures/terrain_data/rock05.tga + q3map_globalTexture + q3map_nonplanar + q3map_shadeangle 90 + surfaceparm dust + q3map_alphaMod dotproduct2 ( 0.0 0.0 0.9 ) + + { + map textures/gw_rev/rock.tga + } + + { + map textures/gw_rev/grass.tga + blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA + alphaGen vertex + } + + { + map $lightmap + blendFunc GL_DST_COLOR GL_ZERO + } +} + +textures/gw_rev/baum1 +{ + cull none + qer_editorimage textures/gw_rev/baum1.tga + qer_trans 0.6 + surfaceparm trans + surfaceparm alphashadow + { + map $lightmap + alphaFunc GT0 + rgbGen identity + } + { + map textures/gw_rev/baum1.tga + rgbGen identity + + } +} + +textures/gw_rev/border +{ + cull none + qer_editorimage textures/gw_rev/border.tga + qer_trans 0.6 + surfaceparm trans + surfaceparm alphashadow + { + map $lightmap + alphaFunc GT0 + rgbGen identity + } + { + map textures/gw_rev/border.tga + rgbGen identity + } +} + +textures/gw_rev/baum2d1 +{ + deformVertexes autosprite2 + cull none + qer_editorimage textures/gw_rev/baum2d1.tga + qer_trans 0.6 + surfaceparm trans + surfaceparm alphashadow + surfaceparm nonsolid + { + map $lightmap + alphaFunc GT0 + rgbGen identity + } + { + map textures/gw_rev/baum2d1.tga + rgbGen identity + } +} + +textures/gw_rev/baum2d2 +{ + deformVertexes autosprite2 + cull none + qer_editorimage textures/gw_rev/baum2d2.tga + qer_trans 0.6 + surfaceparm trans + surfaceparm alphashadow + surfaceparm nonsolid + { + map $lightmap + alphaFunc GT0 + rgbGen identity + } + { + map textures/gw_rev/baum2d2.tga + rgbGen identity + } +} + +textures/gw_rev/baum2d3 +{ + deformVertexes autosprite2 + cull none + qer_editorimage textures/gw_rev/baum2d3.tga + qer_trans 0.6 + surfaceparm trans + surfaceparm alphashadow + surfaceparm nonsolid + { + map $lightmap + alphaFunc GT0 + rgbGen identity + } + { + map textures/gw_rev/baum2d3.tga + rgbGen identity + } +} + +textures/gw_rev/birke2d1 +{ + deformVertexes autosprite2 + cull none + qer_editorimage textures/gw_rev/birke2d1.tga + qer_trans 0.6 + surfaceparm trans + surfaceparm alphashadow + surfaceparm nonsolid + { + map $lightmap + alphaFunc GT0 + rgbGen identity + } + { + map textures/gw_rev/birke2d1.tga + rgbGen identity + } +} + +textures/gw_rev/birke2d2 +{ + deformVertexes autosprite2 + cull none + qer_editorimage textures/gw_rev/birke2d2.tga + qer_trans 0.6 + surfaceparm trans + surfaceparm alphashadow + surfaceparm nonsolid + { + map $lightmap + alphaFunc GT0 + rgbGen identity + } + { + map textures/gw_rev/birke2d2.tga + rgbGen identity + } +} + +textures/gw_rev/pine1 +{ + deformVertexes autosprite2 + cull none + qer_editorimage textures/gw_rev/pine1.tga + qer_trans 0.6 + surfaceparm trans + surfaceparm alphashadow + surfaceparm nonsolid + { + map $lightmap + alphaFunc GT0 + rgbGen identity + } + { + map textures/gw_rev/pine1.tga + rgbGen identity + } +} + +textures/gw_rev/pine2 +{ + deformVertexes autosprite2 + cull none + qer_editorimage textures/gw_rev/pine2.tga + qer_trans 0.6 + surfaceparm trans + surfaceparm alphashadow + surfaceparm nonsolid + { + map $lightmap + alphaFunc GT0 + rgbGen identity + } + { + map textures/gw_rev/pine2.tga + rgbGen identity + } +} + +textures/gw_rev/pine3 +{ + deformVertexes autosprite2 + cull none + qer_editorimage textures/gw_rev/pine3.tga + qer_trans 0.6 + surfaceparm trans + surfaceparm alphashadow + surfaceparm nonsolid + { + map $lightmap + alphaFunc GT0 + rgbGen identity + } + { + map textures/gw_rev/pine3.tga + rgbGen identity + } +} + +textures/gw_rev/grasstex +{ + cull none + qer_editorimage textures/gw_rev/grasstex.tga + qer_trans 0.6 + surfaceparm trans + surfaceparm alphashadow + surfaceparm nonsolid + { + map $lightmap + alphaFunc GT0 + rgbGen identity + } + { + map textures/gw_rev/grasstex.tga + rgbGen identity + } +} + +textures/gw_rev/grass2d1 +{ + cull none + deformVertexes autosprite2 + qer_editorimage textures/gw_rev/grass2d1.tga + qer_trans 0.6 + surfaceparm trans + surfaceparm alphashadow + surfaceparm nonsolid + { + map $lightmap + alphaFunc GT0 + rgbGen identity + } + { + map textures/gw_rev/grass2d1.tga + rgbGen identity + } +} + +textures/gw_rev/grass2d2 +{ + cull none + deformVertexes autosprite2 + qer_editorimage textures/gw_rev/grass2d2.tga + qer_trans 0.6 + surfaceparm trans + surfaceparm alphashadow + surfaceparm nonsolid + { + map $lightmap + alphaFunc GT0 + rgbGen identity + } + { + map textures/gw_rev/grass2d2.tga + rgbGen identity + } +} + +textures/gw_rev/grass2d3 +{ + cull none + deformVertexes autosprite2 + qer_editorimage textures/gw_rev/grass2d3.tga + qer_trans 0.6 + surfaceparm trans + surfaceparm alphashadow + surfaceparm nonsolid + { + map $lightmap + alphaFunc GT0 + rgbGen identity + } + { + map textures/gw_rev/grass2d3.tga + rgbGen identity + } +} + +textures/gw_rev/lava1 +{ + qer_editorimage textures/gw_rev/lava1.tga + //qer_nocarve + qer_trans 0.5 + surfaceparm noimpact + surfaceparm lava + surfaceparm nolightmap + surfaceparm trans + q3map_surfacelight 1000 + cull disable + deformVertexes wave 140.0 sin 2 8 0.25 0.1 + Q3map_TessSize 128 + { + blendfunc add + map textures/gw_rev/lava1.tga + rgbGen identity + } +} diff --git a/data/scripts/shaderlist.txt b/data/scripts/shaderlist.txt index 36769902..4d3dd972 100644 --- a/data/scripts/shaderlist.txt +++ b/data/scripts/shaderlist.txt @@ -67,3 +67,4 @@ gasolinepowered ab greatwall_overloaded greatwall_overloaded-ter +greatwall_revisited