]> git.rm.cloudns.org Git - xonotic/xonotic-maps.pk3dir.git/commitdiff
City shaders
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 20 May 2012 20:43:52 +0000 (23:43 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 20 May 2012 20:43:52 +0000 (23:43 +0300)
scripts/city.shader [new file with mode: 0644]
scripts/glass.shader [new file with mode: 0644]
scripts/shaderlist.txt
scripts/water.shader [new file with mode: 0644]

diff --git a/scripts/city.shader b/scripts/city.shader
new file mode 100644 (file)
index 0000000..8de6692
--- /dev/null
@@ -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 (file)
index 0000000..34a1d3a
--- /dev/null
@@ -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
+       }
+}
index 57226fa3c5c6139fb3699fb3402a00e284367215..e2f39d886423100a29d0795bd9c9e7094f557ce4 100644 (file)
@@ -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 (file)
index 0000000..4a9c50d
--- /dev/null
@@ -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
+}