home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 87 / CDMM87_1.ISO / Sidrial / data1.cab / Program_Files / sidrial0.pk3 / scripts / sidrial_tex.shader < prev    next >
Encoding:
Text File  |  2002-01-09  |  10.8 KB  |  517 lines

  1. //=============================
  2. //
  3. // 'Sidrial' texture shaders;
  4. //
  5. // . sidrialdm1_skybox
  6. // . sidrialsp1_skybox
  7. // . paleblue_light1
  8. // . sidrialsp_paleblue_light1
  9. // . sidrialspescape_paleblue_light1
  10. // . black_fog1
  11. // . black_fog1
  12. // . black_fog2
  13. // . basemonitor
  14. // . sidrialcharger_light1
  15. // . noimpact
  16. // . sidrial_dmglass
  17. // . sidrial_spglass
  18. // . power_rods
  19. // . sidrial_grid07_metal
  20. // . sidrial_grid08_metal
  21. // . screenA
  22. // . screenB
  23. // . consoleC
  24. // . consoleH
  25. // . sidrial_dmglassint
  26. // . waterfall1
  27. // . sidrial_pipe_fence
  28. //
  29. //=============================
  30. // q3map_sun <red> <green> <blue> <intensity> <degrees> <elevation>
  31. // color will be normalized, so it doesn't matter what range you use
  32. // intensity falls off with angle but not distance 100 is a fairly bright sun
  33. // degree of 0 = from the east, 90 = north, etc.  altitude of 0 = sunrise/set, 90 = noon
  34. textures/sidrialdm1/sidrialdm1_skybox
  35. {
  36.     qer_editorimage textures/sidrialdm1/lm.tga
  37.     surfaceparm noimpact
  38.     surfaceparm nolightmap
  39.     q3map_surfacelight 115
  40.     q3map_sun 0.5 0.37 0.19 120 270 70
  41.     skyParms env/sidrialdm1/sidrialdm1sky 128 -
  42. }
  43.  
  44. textures/sidrial_tex/sidrialsp1_skybox
  45. {
  46.     qer_editorimage textures/sidrial_tex/sidrial_s.tga
  47.     surfaceparm noimpact
  48.     surfaceparm nolightmap
  49.     q3map_surfacelight 115
  50.     q3map_sun 0.5 0.37 0.19 120 270 70
  51.     skyParms env/invadercity/invadercity 128 -
  52. }
  53.  
  54. textures/sidrialdm1/paleblue_light1
  55. {
  56.     qer_editorimage textures/sidrialdm1/paleblue_light1.tga
  57.     q3map_lightimage textures/sidrialdm1/paleblue_light1.blend.tga
  58.     surfaceparm nomarks
  59.     q3map_surfacelight 400
  60.     {
  61.         map $lightmap 
  62. //        rgbGen identity
  63.         tcGen lightmap 
  64.     }
  65.     {
  66.         map textures/sidrialdm1/paleblue_light1.tga
  67.         blendfunc filter
  68.         rgbGen identity
  69.     }
  70.     {
  71.         map textures/sidrialdm1/paleblue_light1.blend.tga
  72.         blendfunc add
  73.     }
  74. }
  75.  
  76. textures/sidrial_tex/sidrialsp_paleblue_light1
  77. {
  78.     qer_editorimage textures/sidrial_tex/sidrialsp_paleblue_light1.tga
  79.     q3map_lightimage textures/sidrial_tex/sidrialsp_paleblue_light1.blend.tga
  80.     surfaceparm nomarks
  81.     q3map_surfacelight 650
  82.     {
  83.         map $lightmap 
  84. //        rgbGen identity
  85.         tcGen lightmap 
  86.     }
  87.     {
  88.         map textures/sidrial_tex/sidrialsp_paleblue_light1.tga
  89.         blendfunc filter
  90.         rgbGen identity
  91.     }
  92.     {
  93.         map textures/sidrial_tex/sidrialsp_paleblue_light1.blend.tga
  94.         blendfunc add
  95.     }
  96. }
  97.  
  98. textures/sidrial_tex/sidrialspescape_paleblue_light1
  99. {
  100.     qer_editorimage textures/sidrial_tex/sidrialspescape_paleblue_light1.tga
  101.     q3map_lightimage textures/sidrial_tex/sidrialspescape_paleblue_light1.blend.tga
  102.     surfaceparm nomarks
  103.     q3map_surfacelight 680
  104.     {
  105.         map $lightmap
  106.         rgbGen identity
  107.     }
  108.     {
  109.         map textures/sidrial_tex/sidrial_hazardtape.tga
  110.         blendfunc filter
  111. //        rgbGen identity
  112.         tcMod scale 10 10
  113.     }
  114. //    {
  115. //        map textures/sidrial_tex/sidrialspescape_paleblue_light1.tga
  116. //        blendFunc GL_DST_COLOR GL_ZERO
  117. //        rgbGen identity
  118. //        tcMod scale 8 1
  119. //    }
  120. //    {
  121. //        map textures/sidrial_tex/sidrialspescape_paleblue_light1.blend.tga
  122. //        blendfunc GL_ONE GL_ONE
  123. //        rgbGen wave sawtooth 0 1 0 1
  124. //        tcMod scale 8 1
  125. //    }
  126. }
  127.  
  128. // FOG
  129. //Fog1 is a quite thick black fog
  130. textures/sidrial_tex/black_fog1
  131. {
  132.     qer_editorimage textures/sidrial_tex/sidrial_fog1.tga
  133.     surfaceparm fog
  134.     surfaceparm nodrop
  135.     surfaceparm nolightmap
  136.     surfaceparm nonsolid
  137.     surfaceparm trans
  138.     q3map_globaltexture
  139.     fogparms ( 0.2 0.2 0.25 ) 300
  140.     {
  141.         map textures/sidrial_tex/sidrial_blackfog.tga
  142.         blendfunc filter
  143.         rgbGen identity
  144.         tcMod scale -0.05 -0.05
  145.         tcMod scroll 0.01 -0.01
  146.     }
  147.     {
  148.         map textures/sidrial_tex/sidrial_blackfog.tga
  149.         blendfunc filter
  150.         rgbGen identity
  151.         tcMod scale 0.05 0.05
  152.         tcMod scroll 0.01 -0.01
  153.     }
  154. }
  155.  
  156. //Fog1 is a quite thick black fog
  157. textures/sidrialdm1/black_fog1
  158. {
  159.     qer_editorimage textures/sidrialdm1/black_fog1.tga
  160.     surfaceparm fog
  161.     surfaceparm nodrop
  162.     surfaceparm nolightmap
  163.     surfaceparm nonsolid
  164.     surfaceparm trans
  165.     q3map_globaltexture
  166.     fogparms ( 0 0 0 ) 35
  167.     {
  168.         map textures/liquids/kc_fogcloud3.tga
  169.         blendfunc filter
  170.         rgbGen identity
  171.         tcMod scale -0.05 -0.05
  172.         tcMod scroll 0.01 -0.01
  173.     }
  174.     {
  175.         map textures/liquids/kc_fogcloud3.tga
  176.         blendfunc filter
  177.         rgbGen identity
  178.         tcMod scale 0.05 0.05
  179.         tcMod scroll 0.01 -0.01
  180.     }
  181. }
  182.  
  183. //Fog1 is a light black fog
  184. textures/sidrial_tex/black_fog2
  185. {
  186.     qer_editorimage textures/sidrial_tex/sidrial_fog1.tga
  187.     surfaceparm fog
  188.     surfaceparm nodrop
  189.     surfaceparm nolightmap
  190.     surfaceparm nonsolid
  191.     surfaceparm trans
  192.     q3map_globaltexture
  193.     fogparms ( 0.2 0.2 0.25 ) 3000
  194.     {
  195.         map textures/sidrial_tex/sidrial_blackfog.tga
  196.         blendfunc filter
  197.         rgbGen identity
  198.         tcMod scale -0.05 -0.05
  199.         tcMod scroll 0.01 -0.01
  200.     }
  201.     {
  202.         map textures/sidrial_tex/sidrial_blackfog.tga
  203.         blendfunc filter
  204.         rgbGen identity
  205.         tcMod scale 0.05 0.05
  206.         tcMod scroll 0.01 -0.01
  207.     }
  208. }
  209.  
  210. textures/sidrial_tex/basemonitor
  211. {
  212.     qer_editorimage textures/sidrial_tex/sidrial_basemonitor.tga
  213.     surfaceparm nolightmap
  214.     portal
  215.     {
  216.         map textures/sidrial_tex/sidrial_black.tga
  217.         blendfunc blend
  218.         rgbGen identityLighting
  219.         depthWrite
  220.         alphaGen portal 256
  221.     }
  222. }
  223.  
  224. textures/sidrial_tex/sidrialcharger_light1
  225. {
  226.     qer_editorimage models/entities/energystation/blueelectricity.tga
  227.     q3map_lightimage textures/sidrial_tex/sidrialcharger_light1.blend.tga
  228.     surfaceparm nomarks
  229.     q3map_surfacelight 400
  230.     {
  231.         map models/entities/energystation/blueelectricity.tga
  232.         blendfunc add
  233.         tcMod scroll -2 -2
  234.     }
  235.     {
  236.         map models/entities/energystation/fractalbluetilable.tga
  237.         blendfunc add
  238.         tcMod scroll 0.5 0.5
  239.     }
  240. }
  241.  
  242. textures/sidrial_tex/noimpact
  243. {
  244.     qer_editorimage textures/common/nolightmap.tga
  245.     surfaceparm nodraw
  246.     surfaceparm noimpact
  247. }
  248.  
  249. textures/sidrial_tex/sidrial_dmglass
  250. {
  251.     qer_editorimage textures/sidrial_tex/sidrial_glassdm1q3r.tga
  252.     surfaceparm nolightmap
  253.     surfaceparm trans
  254.     qer_trans 0.25
  255.     {
  256.         map textures/sidrial_tex/sidrial_dmreflection.tga
  257.         blendfunc add
  258.         rgbGen identity
  259.         tcGen environment 
  260.     }
  261. }
  262.  
  263. textures/sidrial_tex/sidrial_spglass
  264. {
  265.     qer_editorimage textures/sidrial_tex/sidrial_glasssp1q3r.tga
  266.     surfaceparm nolightmap
  267.     surfaceparm trans
  268.     qer_trans 0.25
  269.     {
  270.         map textures/sidrial_tex/sidrial_spreflection.tga
  271.         blendfunc add
  272.         rgbGen identity
  273.         tcGen environment 
  274.     }
  275. }
  276.  
  277. textures/sidrialdm1/power_rods
  278. {
  279.     {
  280.         map textures/energy_tube/blue_fluid.tga
  281.         blendfunc blend
  282.         tcMod scroll 1 -0.2
  283.         tcMod scale 1 3
  284.     }
  285.     {
  286.         map models/entities/energystation/blueelectricity.tga
  287.         blendfunc add
  288.         rgbGen wave sin 0.8 0.2 0.5 0.2 
  289.         tcMod scroll -20 -20
  290.         alphaGen wave sin 0.5 1 0.5 0.1 
  291.     }
  292.     {
  293.         map textures/energy_tube/pulse.tga
  294.         blendfunc add
  295.         tcMod scale 0 0.5
  296.         tcMod scroll 0 1.5
  297.         tcMod turb 0 0.35 0 0.1
  298.     }
  299. }
  300.  
  301. textures/sidrial_tex/sidrial_grid07_metal
  302. {
  303.     qer_editorimage textures/sidrial_tex/sidrial_grid07.tga
  304.     surfaceparm metalsteps
  305.     {
  306.         map $lightmap 
  307.         rgbGen identity
  308.         tcGen lightmap 
  309.     }
  310.     {
  311.         map textures/sidrial_tex/sidrial_grid07.tga
  312.         blendfunc filter
  313.         rgbGen identity
  314.     }
  315. }
  316.  
  317. textures/sidrial_tex/sidrial_grid08_metal
  318. {
  319.     qer_editorimage textures/sidrial_tex/sidrial_grid08.tga
  320.     surfaceparm metalsteps
  321.     {
  322.         map $lightmap 
  323.         rgbGen identity
  324.         tcGen lightmap 
  325.     }
  326.     {
  327.         map textures/sidrial_tex/sidrial_grid08.tga
  328.         blendfunc filter
  329.         rgbGen identity
  330.     }
  331. }
  332.  
  333. textures/sidrial_tex/screenA
  334. {
  335.     {
  336.         map textures/sidrial_tex/screenAscroll.tga
  337.         tcMod scroll 0 0.05
  338.     }
  339.     {
  340.         map textures/sidrial_tex/screenA.tga
  341.         blendfunc blend
  342.     }
  343.     {
  344.         map textures/sidrial_tex/screenAblink.tga
  345.         blendfunc blend
  346.         alphaGen wave inversesawtooth 0 1 0 1 
  347.     }
  348.     {    
  349.         map textures/sidrial_tex/widget.tga
  350.         blendfunc blend
  351.         alphaGen wave sin -50 51 0 0.02
  352.     }
  353. }
  354.  
  355. textures/sidrial_tex/screenB
  356. {
  357.     {
  358.         map textures/sidrial_tex/screenBscroll.tga
  359.         tcMod scroll 0 0.05
  360.     }
  361.     {
  362.         map textures/sidrial_tex/screenB.tga
  363.         blendfunc blend
  364.     }
  365.     {
  366.         map textures/sidrial_tex/screenBblink.tga
  367.         blendfunc blend
  368.         alphaGen wave inversesawtooth 0 1 0 1 
  369.     }
  370. }
  371.  
  372. textures/sidrial_tex/consoleC
  373. {
  374.     {
  375.         clampmap textures/sidrial_tex/consoleC_meter.tga
  376.         tcMod turb 0.5 0.1 0 0.2
  377.     }
  378.     {
  379.         map textures/sidrial_tex/consoleC.tga
  380.         blendfunc blend
  381.         rgbGen Vertex
  382.     }
  383.     {
  384.         map textures/sidrial_tex/consoleC_lights2.tga
  385.         blendfunc add
  386.         rgbGen wave square 0 1 0 1 
  387.     }
  388.     {
  389.         map textures/sidrial_tex/consoleC_lights1.tga
  390.         blendfunc add
  391.     }
  392.     {
  393.         animmap 2 textures/sidrial_tex/consoleC_lights3.tga textures/sidrial_tex/consoleC_lights4.tga textures/sidrial_tex/consoleC_lights5.tga
  394.         blendfunc add
  395.     }
  396.     {    
  397.         map textures/sidrial_tex/consoleC_Lloyd1.tga
  398.         blendfunc blend
  399.         rgbGen vertex
  400.         alphaGen wave sin -50 51 0 0.02
  401.     }
  402.     {    
  403.         map textures/sidrial_tex/consoleC_Lloyd2.tga
  404.         blendfunc add
  405.         rgbGen wave sin -50 51 0 0.02
  406.     }
  407.  
  408. }
  409.  
  410. textures/sidrial_tex/consoleH
  411. {
  412.     {
  413.         map textures/sidrial_tex/consoleH_lights1.tga
  414.         tcMod scroll 0 -1
  415.     }
  416.     {
  417.         map textures/sidrial_tex/consoleH.tga
  418.         blendfunc blend
  419.         rgbGen Vertex
  420.     }
  421.     {
  422.         map textures/sidrial_tex/consoleH_lights2.tga
  423.         blendfunc add
  424.     }
  425.     {
  426.         animmap 2 textures/sidrial_tex/consoleH_lights3.tga textures/sidrial_tex/consoleH_lights4.tga textures/sidrial_tex/consoleH_lights5.tga
  427.         blendfunc add
  428.     }
  429.     {    
  430.         map textures/sidrial_tex/consoleH_Rowan1.tga
  431.         blendfunc blend
  432.         rgbGen vertex
  433.         alphaGen wave sin -50 51 0 0.02
  434.     }
  435.     {    
  436.         map textures/sidrial_tex/consoleH_Rowan2.tga
  437.         blendfunc add
  438.         rgbGen wave sin -50 51 0 0.02
  439.     }
  440. }
  441.  
  442. textures/sidrial_tex/sidrial_dmglassint
  443. {
  444.     qer_editorimage textures/sidrial_tex/sidrial_glassdm1q3rint.tga
  445.     surfaceparm nolightmap
  446.     surfaceparm trans
  447.     qer_trans 0.25
  448.     {
  449.         map textures/sidrial_tex/sidrial_dmreflectionint.tga
  450.         blendfunc add
  451.         rgbGen identity
  452.         tcGen environment 
  453.     }
  454. }
  455.  
  456. textures/sidrial_tex/waterfall1
  457. {
  458.     {
  459.         map textures/sidrial_tex/waterfall_lights.tga
  460.         tcMod scroll -0.1 0
  461.     }
  462.     {
  463.         map textures/sidrial_tex/waterfall_f.tga
  464.         blendfunc filter
  465.     }
  466.     {
  467.         animmap 10 textures/sidrial_tex/waterfall_static1.tga textures/sidrial_tex/waterfall_static2.tga textures/sidrial_tex/waterfall_static3.tga 
  468.         blendfunc add
  469.     }
  470. }
  471.  
  472. //sidrial_tex/waterfall1
  473. //{
  474. //    {
  475. //        animmap 10 textures/sidrial_tex/waterfallflow1.tga textures/sidrial_tex/waterfallflow2.tga textures/sidrial_tex/waterfallflow3.tga
  476. //    }
  477. //}
  478. //sidrial_tex/waterfall2
  479. //{
  480. //    {
  481. //        animmap 10 textures/sidrial_tex/waterfallflow1.tga textures/sidrial_tex/waterfallflow2.tga textures/sidrial_tex/waterfallflow3.tga
  482. //    }
  483. //    {
  484. //        map textures/sidrial_tex/waterfallOff.tga
  485. //        blendFunc blend
  486. //        alphaGen wave sin 0.5 1 0 0.3
  487. //
  488. //    }
  489. //}
  490. //sidrial_tex/waterfall3
  491. //{
  492. //    {
  493. //        map textures/sidrial_tex/waterfall3.tga
  494. //    }
  495. //}
  496. textures/sidrial_tex/sidrial_pipe_fence
  497. {
  498.     surfaceparm trans
  499.     cull disable
  500.     nopicmip
  501.     {
  502.         map textures/sidrial_tex/sidrial_pipe_fence.tga
  503.         rgbGen identity
  504.         tcMod scale 3 3
  505.         depthWrite
  506.         alphaFunc GE128
  507.     }
  508.     {
  509.         map $lightmap 
  510.         blendfunc filter
  511.         rgbGen identity
  512.         tcGen lightmap 
  513.         depthFunc equal
  514.     }
  515. }
  516.  
  517.