home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 February / maximum-cd-2001-02.iso / Team Arena / TeamArenaDemo.exe / Main / pak0.pk3 / scripts / mre.shader < prev    next >
Encoding:
Text File  |  2000-11-22  |  7.4 KB  |  418 lines

  1.  
  2. // Mr Elusive's shaders
  3.  
  4.  
  5. //================
  6. // Elia Romanic
  7. //================
  8.  
  9. textures/mre/mresky2
  10. {
  11.     qer_editorimage textures/mre/mresky2.tga
  12.     surfaceparm sky
  13.     surfaceparm noimpact
  14.     surfaceparm nolightmap
  15.     skyparms env/mre - -
  16.  
  17.     q3map_surfacelight 120
  18.     //sun angle is aproximately atan(1/2) coming from the south
  19.     //light color is very light yellow
  20.     q3map_sun 1 1 .9 600 270 27
  21.     //backsplash lights don't make sense at all on the sky
  22.     q3map_backsplash -1 0
  23. }
  24.  
  25. textures/mre/mrebeam_align
  26. {
  27.     surfaceparm trans    
  28.     surfaceparm nomarks    
  29.     surfaceparm nonsolid
  30.     surfaceparm nolightmap
  31. //    qer_trans .5
  32.     cull none
  33.     surfaceparm nomipmaps
  34.     polygonOffset
  35.     sort additive
  36.     //nopicmip
  37.     {
  38.         map textures/mre/mrebeam.tga
  39.         tcMod Scroll .3 0
  40.         blendFunc add
  41.     }
  42. }
  43.  
  44. textures/mre/valeriaan
  45. {
  46.     surfaceparm trans    
  47.     surfaceparm nomarks    
  48.     surfaceparm nonsolid
  49.     surfaceparm nolightmap
  50.     cull none
  51.     surfaceparm nomipmaps
  52.     {
  53.         map textures/mre/valeriaan.tga
  54.         blendFunc blend
  55.     }
  56. }
  57.  
  58.  
  59. textures/mre/blocks19_lmps2
  60. {
  61.     qer_editorimage textures/mre/blocks19_lmps2
  62.     q3map_lightmapsamplesize 2
  63.     {
  64.         map $lightmap
  65.         rgbGen identity
  66.     }
  67.     {
  68.         map textures/gothic_block/blocks19.tga
  69.         rgbGen identity
  70.         blendFunc GL_DST_COLOR GL_ZERO
  71.     }
  72. }
  73.  
  74. textures/mre/blocks9_lmps4
  75. {
  76.     qer_editorimage textures/mre/blocks9_lmps4
  77.     q3map_lightmapsamplesize 4
  78.     {
  79.         map $lightmap
  80.         rgbGen identity
  81.     }
  82.     {
  83.         map textures/gothic_block/blocks9.tga
  84.         rgbGen identity
  85.         blendFunc GL_DST_COLOR GL_ZERO
  86.     }
  87. }
  88.  
  89. textures/mre/webs1
  90. {        
  91. //    deformVertexes wave 10 sin 0 2 0 .2
  92.     surfaceparm trans
  93.     surfaceparm nomarks
  94.     surfaceparm nonsolid
  95.     surfaceparm nolightmap
  96.     cull none
  97.     surfaceparm nomipmaps
  98.     {
  99.         map textures/mre/webs1.tga
  100. //        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  101.         blendFunc blend
  102.     }
  103. }
  104.  
  105. textures/mre/webs2
  106. {        
  107. //    deformVertexes wave 10 sin 0 2 0 .2
  108.     surfaceparm trans
  109.     surfaceparm nomarks
  110.     surfaceparm nonsolid
  111.     surfaceparm nolightmap
  112.     cull none
  113.     surfaceparm nomipmaps
  114.     {
  115.         map textures/mre/webs2.tga
  116. //        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  117.         blendFunc blend
  118.     }
  119. }
  120.  
  121. textures/mre/teleport
  122. {
  123.     deformVertexes wave 20 sin 0 2 0 .1
  124.     surfaceparm trans
  125.     surfaceparm nomarks
  126.     surfaceparm nonsolid
  127.     surfaceparm nolightmap
  128.     cull none
  129.     surfaceparm nomipmaps
  130.     {
  131.         map textures/mre/teleport.tga
  132.         tcMod scroll 0 -1
  133.         blendFunc blend
  134.     }
  135. }
  136.  
  137. textures/mre/undercroftfog
  138. {
  139.     qer_editorimage textures/mre/undercroftfog.tga
  140.     qer_trans 0.60
  141.     surfaceparm    trans
  142.     surfaceparm    nonsolid
  143.     surfaceparm    fog
  144.     surfaceparm    nolightmap
  145.     qer_nocarve
  146.     fogparms ( .92 .54 .16 ) 1000
  147.     //fogparms ( .85 .45 .01 ) 1000
  148.     //fogparms ( 0.7 0.6 0.4 ) 3000
  149. }
  150.  
  151. textures/mre/blocks19_tracelight
  152. {
  153.     qer_editorimage textures/mre/blocks19_tracelight
  154.     q3map_tracelight
  155.     {
  156.         map $lightmap
  157.         rgbGen identity
  158.     }
  159.     {
  160.         map textures/gothic_block/blocks19.tga
  161.         rgbGen identity
  162.         blendFunc GL_DST_COLOR GL_ZERO
  163.     }
  164. }
  165.  
  166. textures/mre/blood1
  167. {
  168.     qer_editorimage textures/mre/blood1.tga
  169.     polygonOffset
  170.     surfaceparm    nomarks   
  171.     surfaceparm    trans
  172.     surfaceparm nonsolid
  173.     //nomipmaps
  174.     surfaceparm pointlight
  175.     entityMergable
  176.      {
  177.         map textures/mre/blood1.tga
  178.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  179.         rgbGen vertex
  180.         alphaGen vertex
  181.     }
  182. }
  183.  
  184. textures/mre/blood2
  185. {
  186.     qer_editorimage textures/mre/blood2.tga
  187.     polygonOffset
  188.     surfaceparm    nomarks   
  189.     surfaceparm    trans
  190.     surfaceparm nonsolid
  191.     //nomipmaps
  192.     surfaceparm pointlight
  193.     entityMergable
  194.      {
  195.         map textures/mre/blood2.tga
  196.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  197.         rgbGen vertex
  198.         alphaGen vertex
  199.     }
  200. }
  201.  
  202. textures/mre/blocks9_trans
  203. {
  204.     qer_editorimage textures/gothic_block/blocks9.tga
  205.     surfaceparm nonsolid
  206.     {
  207.         map $lightmap
  208.         rgbGen identity
  209.     }
  210.     {
  211.         map textures/gothic_block/blocks9.tga
  212.         rgbGen identity
  213.         blendFunc GL_DST_COLOR GL_ZERO
  214.     }
  215. }
  216.  
  217. textures/mre/windowarch
  218. {
  219.     qer_editorimage textures/mre/windowarch.tga
  220.     polygonOffset
  221.     surfaceparm trans
  222.     surfaceparm    nomarks
  223.     surfaceparm nonsolid
  224.     //nomipmaps
  225.     entityMergable
  226.     surfaceparm pointlight
  227.     q3map_vertexshadows        //cast shadows at this surface
  228.     q3map_notjunc            //don't use this surface for tjunction fixing
  229.     sort banner
  230.      {
  231.         map textures/mre/windowarch.tga
  232.         //blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  233.         blendFunc blend
  234.         //rgbGen vertex
  235.         //alphaGen vertex
  236.     }
  237. //    {
  238. //        map $lightmap
  239. //        rgbGen identity
  240. //        blendfunc GL_DST_COLOR GL_ZERO
  241. //    }
  242. }
  243.  
  244.  
  245. //==================
  246. // test stuff
  247. //==================
  248.  
  249. textures/mre/mresky
  250. {
  251.     qer_editorimage textures/mre/mresky.tga
  252.     surfaceparm sky
  253.     surfaceparm noimpact
  254.     surfaceparm nolightmap
  255.     skyparms - 512 -
  256.  
  257.     q3map_surfacelight 400
  258.     q3map_backsplash -1 0
  259. //    q3map_sun 1 1 1 600 270 30
  260. //    cloudparms  512 full
  261.             
  262.     {
  263.         map textures/mre/skybluesky.tga
  264.         tcMod scroll 0.01 0
  265.         tcMod scale 2 2
  266.     }
  267.  
  268.     
  269.     {
  270.         map textures/mre/cloud1a.tga
  271.         blendfunc GL_ONE GL_ONE
  272.         tcMod scroll 0.002 0.005
  273.         tcMod scale 2 2
  274.     }
  275.  
  276. //    {
  277. //        map textures/mre/gmist2.tga
  278. //        alphaFunc GT0
  279. //        blendfunc GL_ONE GL_ONE
  280. //        blendfunc GL_DST_COLOR GL_ONE        
  281. //        tcMod scroll 0.01 0.02
  282. //        tcMod scale 2 2
  283. //    }
  284.  
  285.  
  286. }
  287.  
  288. textures/mre/mresunlight
  289. {
  290.     qer_editorimage textures/mre/mresunlight.tga
  291.     surfaceparm sky
  292.     surfaceparm noimpact
  293.     surfaceparm nolightmap
  294.     skyparms env/mre - -
  295. //    q3map_surfacelight 1000
  296. //    q3map_lightimage textures/mre/whitelight.tga
  297.  
  298. //    qer_editorimage textures/mre/mresunlight.tga
  299. //    surfaceparm noimpact
  300. //    surfaceparm nolightmap
  301. //    surfaceparm    nonsolid
  302. //    qer_trans .5
  303. //    q3map_surfacelight 500
  304. //    {
  305. //        map $whiteimage
  306. //        blendFunc GL_ONE GL_ZERO
  307. //    }
  308. }
  309.  
  310. textures/mre/mresky3
  311. {
  312.     qer_editorimage textures/mre/mresky3.tga
  313.     surfaceparm sky
  314.     surfaceparm noimpact
  315.     surfaceparm nolightmap
  316.     skyparms - 512 -
  317.     q3map_sun 1 1 1 600 180 55
  318.     {
  319.         map textures/mre/skybluesky.tga
  320.         tcMod scroll 0.01 0
  321.         tcMod scale 2 2
  322.     }
  323.  
  324.     
  325.     {
  326.         map textures/mre/cloud1a.tga
  327.         blendfunc GL_ONE GL_ONE
  328.         tcMod scroll 0.002 0.005
  329.         tcMod scale 2 2
  330.     }
  331. }
  332.  
  333. textures/mre/st_glass01
  334. {
  335.     surfaceparm trans    
  336.     surfaceparm alphashadow
  337. //    surfaceparm nolightmap
  338.     cull none
  339.     surfaceparm nomipmaps
  340.     {
  341.         map textures/mre/st_glass01.tga
  342.         blendFunc blend
  343.     }
  344. }
  345.  
  346. textures/mre/stainedglass
  347. {
  348.     surfaceparm trans    
  349.     surfaceparm alphashadow
  350. //    surfaceparm nolightmap
  351.     cull none
  352.     surfaceparm nomipmaps
  353.     {
  354.         map textures/mre/stainedglass.tga
  355.         blendFunc add
  356.     }
  357. }
  358.  
  359. textures/mre/stainedglass2
  360. {
  361.     surfaceparm trans    
  362.     surfaceparm alphashadow
  363. //    surfaceparm nolightmap
  364.     cull none
  365.     surfaceparm nomipmaps
  366.     {
  367.         map textures/mre/stainedglass2.tga
  368.         blendFunc blend
  369.     }
  370. }
  371.  
  372. textures/mre/stainedglass3
  373. {
  374.     surfaceparm trans    
  375.     surfaceparm alphashadow
  376. //    surfaceparm nolightmap
  377.     cull none
  378.     surfaceparm nomipmaps
  379.     {
  380.         map textures/mre/stainedglass3.tga
  381.         blendFunc blend
  382.     }
  383. }
  384.  
  385. textures/mre/blocks11b_trans
  386. {
  387.     qer_editorimage textures/gothic_block/blocks11b.tga
  388.     surfaceparm nonsolid
  389.     {
  390.         map $lightmap
  391.         rgbGen identity
  392.     
  393.     }
  394.     {
  395.         map textures/gothic_block/blocks11b.tga
  396.         rgbGen identity
  397.         blendFunc GL_DST_COLOR GL_ZERO
  398.     }
  399. }
  400.  
  401. textures/mre/mrearealight
  402. {
  403.     qer_editorimage textures/mre/mrearealight.tga
  404.     q3map_surfacelight 100
  405.     //light 1
  406.     q3map_lightimage $whiteimage
  407.     //q3map_lightsubdivide
  408.     //surfaceparm nomarks
  409.     {
  410.         map $lightmap
  411.         rgbGen identity
  412.     }
  413.     {
  414.         map textures/gothic_light/gothic_light3.tga
  415.         blendFunc GL_DST_COLOR GL_ZERO
  416.         rgbGen identity
  417.     }
  418. }