From: MirceaKitsune Date: Sun, 20 May 2012 20:43:52 +0000 (+0300) Subject: City shaders X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9a6fce1bafeacf426cdfb524c2ab50126452cd44;p=xonotic%2Fxonotic-maps.pk3dir.git City shaders --- diff --git a/scripts/city.shader b/scripts/city.shader new file mode 100644 index 00000000..8de6692e --- /dev/null +++ b/scripts/city.shader @@ -0,0 +1,160 @@ +textures/city/fence +{ + qer_editorimage textures/city/fence.tga + surfaceparm alphashadow + surfaceparm nomarks + surfaceparm metalsteps + surfaceparm trans + cull disable + nopicmip + { + map textures/city/fence.tga + rgbGen identity + depthWrite + alphaFunc GE128 + } + { + map $lightmap + blendfunc filter + rgbGen identity + tcGen lightmap + depthFunc equal + } +} + +textures/city/traffic_green +{ + qer_editorimage textures/city/traffic_green.tga + surfaceparm alphashadow + surfaceparm nomarks + surfaceparm nonsolid + surfaceparm trans + nopicmip + { + map textures/city/traffic_green.tga + rgbGen identity + blendfunc GL_ONE GL_ONE + } +} + +// traffic lights + +textures/city/traffic_yellow +{ + qer_editorimage textures/city/traffic_yellow.tga + surfaceparm alphashadow + surfaceparm nomarks + surfaceparm nonsolid + surfaceparm trans + nopicmip + { + map textures/city/traffic_yellow.tga + rgbGen identity + blendfunc GL_ONE GL_ONE + } +} + +textures/city/traffic_red +{ + qer_editorimage textures/city/traffic_red.tga + surfaceparm alphashadow + surfaceparm nomarks + surfaceparm nonsolid + surfaceparm trans + nopicmip + { + map textures/city/traffic_red.tga + rgbGen identity + blendfunc GL_ONE GL_ONE + } +} + +textures/city/pedestrian_green +{ + qer_editorimage textures/city/pedestrian_green.tga + surfaceparm alphashadow + surfaceparm nomarks + surfaceparm nonsolid + surfaceparm trans + nopicmip + { + map textures/city/pedestrian_green.tga + rgbGen identity + blendfunc GL_ONE GL_ONE + } +} + +textures/city/pedestrian_red +{ + qer_editorimage textures/city/pedestrian_red.tga + surfaceparm alphashadow + surfaceparm nomarks + surfaceparm nonsolid + surfaceparm trans + nopicmip + { + map textures/city/pedestrian_red.tga + rgbGen identity + blendfunc GL_ONE GL_ONE + } +} + +textures/city/sign_traffic +{ + qer_editorimage textures/city/traffic_green.tga + surfaceparm alphashadow + surfaceparm nomarks + surfaceparm nonsolid + surfaceparm trans + nopicmip + { + map textures/city/traffic_green + animmap 0.25 textures/city/traffic_green textures/city/traffic_green textures/city/traffic_green textures/city/traffic_green textures/city/traffic_yellow textures/city/traffic_red textures/city/traffic_red textures/city/traffic_red textures/city/traffic_red + blendfunc GL_ONE GL_ONE + } +} + +textures/city/sign_traffic_inverted +{ + qer_editorimage textures/city/traffic_red.tga + surfaceparm alphashadow + surfaceparm nomarks + surfaceparm nonsolid + surfaceparm trans + nopicmip + { + map textures/city/traffic_green + animmap 0.25 textures/city/traffic_red textures/city/traffic_red textures/city/traffic_red textures/city/traffic_red textures/city/traffic_yellow textures/city/traffic_green textures/city/traffic_green textures/city/traffic_green textures/city/traffic_green + blendfunc GL_ONE GL_ONE + } +} + +textures/city/sign_pedestrian +{ + qer_editorimage textures/city/pedestrian_red.tga + surfaceparm alphashadow + surfaceparm nomarks + surfaceparm nonsolid + surfaceparm trans + nopicmip + { + map textures/city/traffic_green + animmap 0.25 textures/city/pedestrian_red textures/city/pedestrian_red textures/city/pedestrian_red textures/city/pedestrian_red textures/city/pedestrian_red textures/city/pedestrian_green textures/city/pedestrian_green textures/city/pedestrian_green textures/city/pedestrian_green + blendfunc GL_ONE GL_ONE + } +} + +textures/city/sign_pedestrian_inverted +{ + qer_editorimage textures/city/pedestrian_green.tga + surfaceparm alphashadow + surfaceparm nomarks + surfaceparm nonsolid + surfaceparm trans + nopicmip + { + map textures/city/traffic_green + animmap 0.25 textures/city/pedestrian_green textures/city/pedestrian_green textures/city/pedestrian_green textures/city/pedestrian_green textures/city/pedestrian_red textures/city/pedestrian_red textures/city/pedestrian_red textures/city/pedestrian_red textures/city/pedestrian_red + blendfunc GL_ONE GL_ONE + } +} \ No newline at end of file diff --git a/scripts/glass.shader b/scripts/glass.shader new file mode 100644 index 00000000..34a1d3a9 --- /dev/null +++ b/scripts/glass.shader @@ -0,0 +1,41 @@ +textures/glass/wavy +{ + dpoffsetmapping none + surfaceparm nolightmap + // surfaceparm nonsolid // no, it must be solid like trigger + surfaceparm trans + surfaceparm nomarks + { + map textures/glass/wavy.tga + tcMod scroll 0.06 0.06 + blendfunc blend + } + dp_water 0.1 0.9 3 3 1 1 1 1 1 1 0.4 +} + +textures/glass/blueedge +{ + cull none + { + map textures/glass/blueedge.tga + blendfunc GL_SRC_ALPHA GL_ONE + } +} + +textures/glass/rededge +{ + cull none + { + map textures/glass/rededge.tga + blendfunc GL_SRC_ALPHA GL_ONE + } +} + +textures/glass/greenedge +{ + cull none + { + map textures/glass/greenedge.tga + blendfunc GL_SRC_ALPHA GL_ONE + } +} diff --git a/scripts/shaderlist.txt b/scripts/shaderlist.txt index 57226fa3..e2f39d88 100644 --- a/scripts/shaderlist.txt +++ b/scripts/shaderlist.txt @@ -59,3 +59,6 @@ trak4x trak5x trak6x trak7x +glass +water +city diff --git a/scripts/water.shader b/scripts/water.shader new file mode 100644 index 00000000..4a9c50d1 --- /dev/null +++ b/scripts/water.shader @@ -0,0 +1,22 @@ +textures/water/water_fall +{ + qer_editorimage textures/water/water_fall.tga + qer_trans 20 + cull disable + surfaceparm trans + surfaceparm nonsolid + + { + map textures/water/water_fall.tga + tcMod scroll 0 -1.9 + blendfunc blend + + } + dpreflectcube cubemaps/default/sky + { + map $lightmap + blendfunc add + tcGen lightmap + } + dp_water 0.1 0.9 3 3 1 1 1 1 1 1 0.4 +}