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

  1. textures/clock/remag_clk
  2. {
  3.     qer_editorimage textures/clock/stnclkface.tga
  4.     qer_keyword special
  5.     qer_keyword wood
  6.     surfaceparm wood
  7.     PolygonOffset
  8.     nomipmaps
  9. //    nopicmip
  10.     {
  11.         clampmap textures/clock/stnclkface.tga
  12.         depthwrite
  13.         alphafunc GE128
  14.     }
  15.     {
  16.         clampmap textures/clock/stnclkhour.tga
  17.         alphafunc GE128
  18.         tcMod rotate .008333333 180
  19.     }
  20.     {
  21.         clampmap textures/clock/stnclkminute.tga
  22.         alphafunc GE128
  23.         tcMod rotate .1 45
  24.     }
  25.     {
  26.         map $lightmap
  27.         rgbGen identity
  28.         blendFunc GL_DST_COLOR GL_ZERO
  29.         depthfunc equal
  30.     }
  31. }
  32.  
  33. /////////////////////////////////////////////////////
  34. // static clock face 1
  35. /////////////////////////////////////////////////////
  36.  
  37. static_clockface1
  38. {
  39.     qer_editorimage textures/clock/clockface1.tga
  40.     nomipmaps
  41.     nopicmip
  42.     {
  43.         clampmap textures/clock/clockface1.tga
  44.         depthwrite
  45.     }
  46.     ///////////////////////////////////////////
  47.     ///hourhand
  48.     ///////////////////////////////////////////
  49.     {
  50.         clampmap textures/clock/hourhand.tga
  51.         alphafunc GE128
  52.         tcMod rotate .008333333 180
  53.     }
  54.     ///////////////////////////////////////////
  55.     ///minutehand
  56.     ///////////////////////////////////////////
  57.     {
  58.         clampmap textures/clock/minutehand.tga
  59.         alphafunc GE128
  60.         tcMod rotate .1 45
  61.     }
  62.     {
  63.         map $lightmap
  64.         rgbGen static
  65.         blendFunc GL_DST_COLOR GL_ZERO
  66.         depthfunc equal
  67.     }
  68. }
  69.  
  70. /////////////////////////////////////
  71. // clock housing 1
  72. /////////////////////////////////////
  73.  
  74. static_clockhousing
  75. {
  76.     cull none
  77.     qer_editorimage textures/clock/clockhousing.tga
  78.     {
  79.         map textures/clock/clockhousing.tga
  80.         rgbGen static
  81.     }
  82. }
  83.  
  84. /////////////////////////////////////
  85. // roman numeral clockface
  86. /////////////////////////////////////
  87.  
  88. static_clockface2
  89. {
  90.     qer_editorimage textures/clock/clockface_roman.tga
  91.     nomipmaps
  92.     nopicmip
  93.     {
  94.         clampmap textures/clock/clockface_roman.tga
  95.         depthwrite
  96.     }
  97.     ///////////////////////////////////////////
  98.     ///hourhand
  99.     ///////////////////////////////////////////
  100.     {
  101.         clampmap textures/clock/hourhand.tga
  102.         alphafunc GE128
  103.         tcMod rotate .008333333 90
  104.     }
  105.     ///////////////////////////////////////////
  106.     ///minutehand
  107.     ///////////////////////////////////////////
  108.     {
  109.         clampmap textures/clock/minutehand.tga
  110.         alphafunc GE128
  111.         tcMod rotate .1 0
  112.     }
  113.     {
  114.         map $lightmap
  115.         rgbGen static
  116.         blendFunc GL_DST_COLOR GL_ZERO
  117.         depthfunc equal
  118.     }
  119. }
  120.  
  121. /////////////////////////////////////
  122. // black clock housing
  123. /////////////////////////////////////
  124.  
  125. static_blackclock
  126. {
  127.     cull none
  128.     qer_editorimage textures/clock/blackframe.tga
  129.     {
  130.         map textures/clock/blackframe.tga
  131.         rgbGen static
  132.     }
  133. }
  134.  
  135. //////////////////////////////////
  136. //wirecage
  137. //////////////////////////////////
  138.  
  139. static_wirecage
  140. {
  141.     nopicmip
  142.     nomipmaps
  143.     qer_editorimage textures/clock/wiregrate2.tga
  144.     {
  145.         map textures/clock/wiregrate2.tga
  146.         alphaFunc GE128
  147.         rgbGen static
  148.     }
  149. }
  150.  
  151. /////////////////////////////////////
  152. // aluminum side
  153. /////////////////////////////////////
  154.  
  155. static_aluminumclock
  156. {
  157.     cull none
  158.     qer_editorimage textures/clock/aluminumside.tga
  159.     {
  160.         map textures/clock/aluminumside.tga
  161.         rgbGen static
  162.     }
  163. }
  164.  
  165.  
  166. /////////////////////////////////////
  167. //black clock housing with inner lip
  168. /////////////////////////////////////
  169.  
  170. static_blackclock2
  171. {
  172.     cull none
  173.     qer_editorimage textures/clock/blackframe2.tga
  174.     {
  175.         map textures/clock/blackframe2.tga
  176.         rgbGen static
  177.     }
  178. }
  179.  
  180. /////////////////////////////////////
  181. //brass case for subclock
  182. /////////////////////////////////////
  183.  
  184. static_brassclock
  185. {
  186.     cull none
  187.     qer_editorimage textures/clock/brassframe2.tga
  188.     {
  189.         map textures/clock/brassframe2.tga
  190.         rgbGen static
  191.     }
  192. }
  193.  
  194. /////////////////////////////////////////////////////
  195. // uboat clock face
  196. /////////////////////////////////////////////////////
  197.  
  198. static_subclock
  199. {
  200.     qer_editorimage textures/clock/subclockface.tga
  201.     nomipmaps
  202.     nopicmip
  203.     {
  204.         clampmap textures/clock/subclockface.tga
  205.         depthwrite
  206.     }
  207.     ///////////////////////////////////////////
  208.     ///hourhand
  209.     ///////////////////////////////////////////
  210.     {
  211.         clampmap textures/clock/subhour.tga
  212.         alphafunc GE128
  213.         tcMod rotate .008333333 180
  214.     }
  215.     ///////////////////////////////////////////
  216.     ///minutehand
  217.     ///////////////////////////////////////////
  218.     {
  219.         clampmap textures/clock/subminute.tga
  220.         alphafunc GE128
  221.         tcMod rotate .1 45
  222.     }
  223.     {
  224.         map $lightmap
  225.         rgbGen static
  226.         blendFunc GL_DST_COLOR GL_ZERO
  227.         depthfunc equal
  228.     }
  229. }
  230.