home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2002 December / JOY143_CD1.iso / Data / Demos / Platoon / pl_demo.exe / Shaders / Materials / grass.mat < prev    next >
Text File  |  2002-09-17  |  1KB  |  60 lines

  1. #include "..\MaterialDefine.def"
  2.  
  3. [Technique]
  4. {
  5.   [Pass]
  6.   {
  7.     [Layer]
  8.     {
  9.       TextureSource     = 0
  10.       TexCoordIndex     = 0
  11.  
  12.       ColorArg1 = TA_TEXTURE ;diffuse textura
  13.       ColorArg2 = TA_DIFFUSE    
  14.       ColorOp   = TOP_MODULATE
  15.  
  16.       AlphaArg1 = TA_TEXTURE
  17.       AlphaOp   = TOP_SELECTARG1
  18.  
  19.       TextureAddressU = TADDRESS_CLAMP
  20.       TextureAddressV = TADDRESS_CLAMP
  21.  
  22.       Filter = TF_LINEAR_MIP_LINEAR
  23.     }
  24.     [Layer]
  25.     {
  26.       ColorArg1 = TA_CURRENT
  27.       ColorArg2 = TA_TFACTOR
  28.       ColorOp   = TOP_MODULATE
  29.         
  30.       AlphaOp    = TOP_DISABLE 
  31.     }
  32.  
  33.  
  34.     FillMode    = FILL_SOLID
  35.     Cull        = CULL_NONE
  36.     DitherEnable        = TRUE
  37.     SpecularEnable      = FALSE
  38.  
  39.     LightingEnable      = FALSE
  40.     NormalizeNormals    = FALSE
  41.     LocalViewer         = FALSE
  42.  
  43.     AlphaTestEnable     = TRUE
  44.     AlphaFunc           = CMP_GREATEREQUAL
  45.     AlphaRef            = 128
  46.  
  47.     TextureFactor    = 255,255,255,255  
  48.  
  49.     AlphaBlendEnable    = FALSE
  50.  
  51.     ZWriteEnable        = TRUE
  52.     ZFunc               = CMP_LESS
  53.  
  54. ;    DiffuseMaterialSource    = MCS_DIFFUSE
  55. ;    SpecularMaterialSource      = MCS_MATERIAL
  56. ;    AmbientMaterialSource    = MCS_MATERIAL
  57. ;    EmissiveMaterialSource    = MCS_MATERIAL
  58.   }
  59. }
  60.