home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Inne / Gry / OpenArena / baseoa / pak0.pk3 / scripts / nki.shader < prev    next >
Encoding:
Text File  |  2007-07-07  |  5.6 KB  |  248 lines

  1. //modification of /skies/IndustrySky for islandctf
  2. textures/nki_shaders/tropicalsky
  3. {
  4.     qer_editorimage env/sky1/sky001_ft.jpg
  5.     nopicmip
  6.     noMipMaps
  7. //    q3map_lightmapFilterRadius self other
  8.     q3map_lightmapFilterRadius 0 8 //to blur q3map_skylight when it has less than 4 iterations, to avoid the "stadium effect"
  9. //    q3map_skylight amount iterations
  10.     q3map_skylight 70 4
  11.     q3map_lightRGB 0.4 0.75 1
  12. //    q3map_lightmapBrightness 2.0 
  13. //    q3map_sunExt red green blue intensity degrees elevation deviance samples
  14.     q3map_sunExt 1 0.84 0.51 140 200 40 4 4
  15. //    q3map_lightsubdivide 256
  16.     q3map_globaltexture
  17.     skyParms env/sky1/sky001 512 -
  18.     surfaceparm noimpact
  19.     surfaceparm nolightmap
  20.     surfaceparm sky
  21. }
  22.  
  23. // modification of /liquids/justwater for island ctf
  24. textures/nki_shaders/tropicalwater
  25. {
  26.     qer_editorimage textures/liquids/pool3d_4b2.tga
  27.     qer_trans 20
  28.     surfaceparm lightfilter
  29.     surfaceparm nomarks
  30.     surfaceparm trans
  31. //    surfaceparm fog
  32.     surfaceparm water
  33. //    surfaceparm alphashadow
  34.     surfaceparm nolightmap
  35.     //deformVertexes wave <div> <func> <base> <amplitude> <phase> <freq>
  36.     deformVertexes wave 256 sin 0 16 0 0.1 
  37.     tessSize 256
  38.     q3map_globaltexture
  39.     q3map_flare textures/flares/twilightflare
  40.     fogparms ( 0.215686 0.278431 0.333333 ) 1024
  41.     cull disable
  42.     {
  43.         map textures/liquids/pool3d_4b2.tga
  44.         blendfunc blend
  45.         rgbGen const ( 0.384314 0.501961 0.568627 )
  46.         tcMod scroll 0.05 -0.05
  47.         alphaGen wave inversesawtooth 0.5 0 0 1 
  48.     }
  49.     {
  50.         map textures/liquids/pool3d_3.jpg
  51.         blendfunc gl_dst_color gl_one
  52.         rgbGen const ( 1 1 1 )
  53.         tcMod scroll 0.09 0.06
  54.     }
  55.     {
  56.         map textures/liquids/pool3d_5.tga
  57.         blendfunc gl_dst_color gl_one
  58.         rgbGen const ( 1 1 1 )
  59.         tcMod scroll -0.04 -0.08
  60.     }
  61. }
  62.  
  63. textures/nki_shaders/lavared_1k5
  64. {
  65.     q3map_lightimage textures/nki/nki_lava4.tga  // q3map_lightimage must appear before any qer_editorimage !!
  66.     qer_editorimage textures/nki/nki_lava4.tga
  67.     q3map_lightmapBrightness 2.0
  68.     //q3map_lightmapFilterRadius self other
  69.     surfaceparm lava
  70.     surfaceparm nolightmap
  71.     surfaceparm nomarks
  72.     surfaceparm noimpact
  73.     surfaceparm trans
  74.     q3map_surfacelight 1500
  75.     cull none
  76.     deformvertexes wave 50 sin 2 3 0 0.2 
  77.     q3map_flare textures/flares/lava
  78.     {
  79.         map textures/nki/nki_lava4.tga
  80. //        tcmod scroll -.05 .001
  81.         tcMod turb 0 -0.2 0 0.02
  82.     }
  83.     {
  84.         map textures/nki/nki_lava5l3.tga
  85.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  86. //        tcmod scroll -.05 .001
  87.         tcMod turb 0.1 -0.1 0 0.01
  88.     }
  89.     
  90. }
  91.  
  92. textures/nki_shaders/lavabright_1k5
  93. {
  94.  
  95.     q3map_lightimage textures/nki/nki_lava5.tga  // q3map_lightimage must appear before qer_editorimage !!
  96.     qer_editorimage textures/nki/nki_lava5.tga
  97.     surfaceparm lava
  98. //    surfaceparm nolightmap
  99.     surfaceparm nomarks
  100.     surfaceparm noimpact
  101.     surfaceparm trans
  102.     q3map_surfacelight 1500
  103.     cull none
  104.     deformvertexes wave 50 sin 2 3 0 0.2 
  105.     q3map_flare textures/flares/lava
  106.     {
  107.         map textures/nki/nki_lava5.tga
  108.         tcmod scroll -.05 .001
  109.         tcMod turb .2 -0.3 0 0.07
  110.     }
  111.  
  112. }
  113.  
  114. textures/mapobjects/palmtree1
  115. {
  116.     qer_editorimage models/mapobjects/palmier/palmier1.tga
  117.     surfaceparm nonsolid
  118.     surfaceparm noimpact
  119. //    surfaceparm trans
  120.     surfaceparm nomarks
  121.     surfaceparm alphashadow
  122.     cull disable
  123.     {
  124.         map models/mapobjects/palmier/palmier1.tga
  125.         alphaFunc GE128
  126.         RgbGen vertex
  127.     }
  128. }
  129.  
  130. textures/nki_shaders/forest4
  131. {
  132.     qer_editorimage textures/nki/nki_forest4.tga
  133.     q3map_lightmapMergable
  134.     q3map_nonPlanar
  135.     q3map_shadeAngle 160
  136.     surfaceparm nonsolid
  137.     surfaceparm lightfilter
  138.     surfaceparm nomarks
  139.     surfaceparm trans
  140.     surfaceparm noimpact
  141.     surfaceparm alphashadow
  142.  
  143.     cull disable
  144.     {
  145.         map textures/nki/nki_forest4.tga
  146. //        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  147.         alphaFunc GE128
  148. //        rgbGen identity
  149.     }
  150.     // {
  151.         // map $lightmap
  152.         // blendFunc GL_DST_COLOR GL_ZERO
  153.         // rgbGen identity
  154.     // }
  155. }
  156.  
  157.  
  158. textures/mapobjects/leafs1
  159. {
  160.     qer_editorimage textures/mapobjects/leafs1.tga
  161.     surfaceparm nonsolid
  162.     surfaceparm lightfilter
  163.     surfaceparm trans
  164.     surfaceparm nomarks
  165.     surfaceparm noimpact
  166.     surfaceparm alphashadow
  167.     cull disable
  168.     {
  169.         map textures/mapobjects/leafs1.tga
  170.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  171. //        alphaFunc GE128
  172. //        rgbGen identity
  173.     }
  174.     // {
  175.         // map $lightmap
  176.         // blendFunc GL_DST_COLOR GL_ZERO
  177.         // rgbGen identity
  178.     // }
  179. }
  180.  
  181. textures/mapobjects/leafs2
  182. {
  183.     qer_editorimage textures/mapobjects/leafs2.tga
  184.     surfaceparm nonsolid
  185.     surfaceparm lightfilter
  186.     surfaceparm nomarks
  187.     surfaceparm trans
  188.     surfaceparm noimpact
  189.     surfaceparm alphashadow
  190.     cull disable
  191.     {
  192.         map textures/mapobjects/leafs2.tga
  193.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  194. //        alphaFunc GE128
  195. //        rgbGen identity
  196.     }
  197.     // {
  198.         // map $lightmap
  199.         // blendFunc GL_DST_COLOR GL_ZERO
  200.         // rgbGen identity
  201.     // }
  202. }
  203.  
  204. textures/mapobjects/leafs3
  205. {
  206.     qer_editorimage textures/mapobjects/leafs3.tga
  207.     surfaceparm nonsolid
  208.     surfaceparm lightfilter
  209.     surfaceparm nomarks
  210.     surfaceparm trans
  211.     surfaceparm noimpact
  212.     surfaceparm alphashadow
  213.     cull disable
  214.     {
  215.         map textures/mapobjects/leafs3.tga
  216.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  217.         //alphaFunc GE128
  218. //        rgbGen identity
  219.     }
  220.     // {
  221.         // map $lightmap
  222.         // blendFunc GL_DST_COLOR GL_ZERO
  223.         // rgbGen identity
  224.     // }
  225. }
  226.  
  227. textures/mapobjects/leafs4
  228. {
  229.     qer_editorimage textures/mapobjects/leafs4.tga
  230.     surfaceparm nonsolid
  231.     surfaceparm lightfilter
  232.     surfaceparm nomarks
  233.     surfaceparm trans
  234.     surfaceparm noimpact
  235.     surfaceparm alphashadow
  236.     cull disable
  237.     {
  238.         map textures/mapobjects/leafs4.tga
  239.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  240.         //alphaFunc GE128
  241. //        rgbGen identity
  242.     }
  243.     // {
  244.         // map $lightmap
  245.         // blendFunc GL_DST_COLOR GL_ZERO
  246.         // rgbGen identity
  247.     // }
  248. }