home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _138634F03EA447EDA7B1FE742C1A195F < prev    next >
Encoding:
Text File  |  2004-06-16  |  2.1 KB  |  98 lines

  1.  
  2. Shader()
  3. {// >=gf3
  4.     SurfaceID(SRFTYPE)
  5.     NoLightmaps()
  6.     Shaderquality(3)
  7.     Pass()
  8.     {
  9.         Lighting()
  10.         Pixelshader("COST.psh")
  11.  
  12.         !include("__Tex1.mtt")
  13.         !include("__Clouds.mtt")
  14.         !include("__TerrainColormapSmall.mtt")
  15.         !include("__WaterDeep.mtt")
  16.  
  17.         !include("__FadeGen.mtt")
  18.         !include("__LightningColors.mtt")
  19.  
  20.         AlphaFunc( "gequal", ALPHAFUNCVALUE )
  21.     }
  22.  
  23.     lightpass()
  24.     !include("Spot1Tex_A.mtt")
  25.     Cull(CULLING)
  26. }
  27.  
  28. Shader()
  29. {// >=gf3
  30.     SurfaceID(SRFTYPE)
  31.     NoLightmaps()
  32.     Shaderquality(1)
  33.     Pass()
  34.     {
  35.         Lighting()
  36.         Pixelshader("OST.psh")
  37.  
  38.         !include("__Tex1.mtt")
  39.         !include("__TerrainColormapSmall.mtt")
  40.  
  41.         !include("__FadeGen.mtt")
  42.         !include("__LightningColors.mtt")
  43.  
  44.         AlphaFunc( "gequal", ALPHAFUNCVALUE )
  45.     }
  46.  
  47.     lightpass()
  48.     !include("Spot1Tex_A.mtt")
  49.     Cull(CULLING)
  50. }
  51.  
  52. Shader()
  53. {//gf2
  54.     SurfaceID(SRFTYPE)
  55.     Shaderquality(0)
  56.     NoLightmaps()
  57.     Pass()
  58.     {
  59.         Lighting()
  60.         tmu()
  61.         {
  62.             TexGen("planar")
  63.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  64.             texture()
  65.             {
  66.                 Image(%colortexturesmall)
  67.                 addressfunc("clamp", "clamp", "clamp")
  68.             }
  69.             ColorOp("mul_add", "texture_a", "diffuse", "tfactor_a")
  70.         }
  71.  
  72.  
  73.         tmu()
  74.         {
  75.             Texture()
  76.             {
  77.                 Mapchannel(0)
  78.                 Image(TEXTURE1)
  79.                 !include(TEX1OPTIONSFILE)
  80.             }
  81.             ColorOp("mul", "texture", "current", "current")     //texture * lighting
  82.             alphaop("mul2", "texture", "diffuse", "current") //alphamask extraction
  83.         }
  84.  
  85.         Tfactor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  86.  
  87.         !include("__FadeGenDayColorGF2.mtt")
  88.  
  89.         !include("__LightningColorsGF2.mtt")
  90.  
  91.         AlphaFunc( "greater", ALPHAFUNCVALUE )
  92.     }
  93.     lightpass()
  94.     !include("spot_spotmap.mtt")
  95.     Cull(CULLING)
  96. }
  97.  
  98.