home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / scripts / bunker.shader < prev    next >
Encoding:
Text File  |  2002-10-21  |  3.0 KB  |  153 lines

  1. static_vent_valve
  2. {
  3.     qer_editorimage textures/models/bunker/vent_valve.tga
  4.     {
  5.         map textures/models/bunker/vent_valve.tga
  6.         rgbGen vertex
  7.         //rgbGen static
  8.         //rgbGen lightingSpherical
  9.     }
  10. }
  11.  
  12. switch1
  13. {
  14.     qer_editorimage textures/models/bunker/switch1.tga
  15.     {
  16.         map textures/models/bunker/switch1.tga
  17.         rgbGen lightingSpherical
  18.     }
  19. }
  20.  
  21. switch1_pulse
  22. {
  23.     qer_editorimage textures/models/bunker/switch1.tga
  24.     {
  25.         map textures/models/bunker/switch1.tga
  26.         rgbGen lightingSpherical
  27.     }
  28.     { // pulsating layer
  29.         map textures/models/items/pulse.tga
  30.         blendFunc GL_SRC_ALPHA GL_ONE // this is an additive blend that uses alpha
  31.         rgbGen wave sin 0.25 0.25 0 0.75
  32.         //rgbGen wave sin 0.15 0.075 0 0.75
  33.         alphaGen distFade 1024 512 // this makes the pulsating fade when you go away from it
  34.     }
  35. }
  36.  
  37. static_switch1
  38. {
  39.     qer_editorimage textures/models/bunker/switch1.tga
  40.     {
  41.         map textures/models/bunker/switch1.tga
  42.         rgbGen vertex
  43.     }
  44. }
  45.  
  46. static_switch2
  47. {
  48.     qer_editorimage textures/models/bunker/switch2.tga
  49.     {
  50.         map textures/models/bunker/switch2.tga
  51.         rgbGen vertex
  52.         //rgbGen static
  53.         //rgbGen lightingSpherical
  54.     }
  55. }
  56.  
  57. filter_thing
  58. {
  59.     qer_editorimage textures/models/bunker/gas_filter.tga
  60.     {
  61.         map textures/models/bunker/gas_filter.tga
  62.         rgbGen static
  63.     }
  64. }
  65. // switch1 pulsating
  66. pulsating_switch1
  67. {
  68.     qer_editorimage textures/models/bunker/switch1.tga
  69.     {
  70.         map textures/models/bunker/switch1.tga
  71.         rgbGen lightingSpherical
  72.     }
  73.     { // pulsating layer
  74.         map textures/models/items/pulse.tga
  75.         blendFunc GL_SRC_ALPHA GL_ONE // this is an additive blend that uses alpha
  76.         rgbGen wave sin 0.25 0.25 0 0.75
  77.         alphaGen distFade 1024 512 // this makes the pulsating fade when you go away from it
  78.     }
  79. }
  80.  
  81. /////////////////////////////////////////////////
  82. //bunker lights
  83. /////////////////////////////////////////////////
  84.  
  85. /////////////////////////
  86. //lightbulb
  87. /////////////////////////
  88.  
  89. static_lightbulb
  90. {
  91.     qer_editorimage textures/models/bunker/lightbulb.tga
  92.     {
  93.         map textures/models/bunker/lightbulb.tga
  94.         rgbGen static
  95.     }
  96. }
  97.     
  98. /////////////////////////
  99. //domelight
  100. /////////////////////////
  101.  
  102. static_domelight
  103. {
  104.     qer_editorimage textures/models/bunker/fixture1.tga
  105.     {
  106.         map textures/models/bunker/fixture1.tga
  107.         rgbGen static
  108.     }
  109. }
  110.  
  111. ///////////////////////////
  112. //environment mapped glass
  113. ///////////////////////////
  114.  
  115. static_glass
  116. {
  117. //cull none
  118.     {
  119.         map textures/test/window_env.tga
  120.         tcgen environmentmodel
  121.         alphagen const .1
  122.         blendFunc blend
  123.           rgbGen static
  124.     }
  125. }
  126.  
  127. ////////////////////////////
  128. //wall cage light
  129. ////////////////////////////
  130.  
  131. static_wallcage
  132. {
  133.     qer_editorimage textures/models/bunker/fixture2.tga
  134.     {
  135.         map textures/models/bunker/fixture2.tga
  136.         rgbGen static
  137.     }
  138. }
  139.  
  140. ////////////////////////////
  141. //wire cage
  142. ////////////////////////////
  143.  
  144. static_wirecage2
  145. {
  146.     qer_editorimage textures/models/bunker/wirecage.tga
  147.     {
  148.         map textures/models/bunker/wirecage.tga
  149.         alphaFunc GE128
  150.         rgbGen static
  151.     }
  152. }
  153.