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

  1. ; texturemapped, reflection mapped with reflection level map!
  2. ; Sima Map -> DIFFUSE TEXTURE rgb
  3. ; Reflection level Map -> DIFFUSE TEXTURE alpha
  4. ; Reflection Map -> REFLECTION TEXTURE rgb
  5. ;
  6. ; Warning: a refmap csak grayscale-ben shadelt!
  7.  
  8. #include "..\MaterialDefine.def"
  9.  
  10. [Technique]
  11. {
  12. ;  Detail        = DETAIL_HIGH
  13.  
  14.   [Pass]
  15.   {
  16.     [Layer]
  17.     {
  18.       TextureSource     = TEXT_DIFFUSE
  19.       TexCoordIndex     = 0
  20.  
  21.       ColorArg1 = TA_TEXTURE  ;diffuse textura
  22.       ColorArg2 = TA_DIFFUSE
  23.       ColorOp   = TOP_MODULATE
  24.  
  25.       AlphaArg1 = TA_TEXTURE
  26.       AlphaOp   = TOP_SELECTARG1
  27.  
  28.       Filter = TF_LINEAR_MIP_LINEAR
  29.     }
  30.     [Layer]
  31.     {
  32.       TextureSource     = TEXT_REFLECTION
  33.       TexCoordIndex     = TSS_TCI_CAMERASPACENORMAL
  34.       TextureTransformFlags = TTFF_COUNT2
  35.       TextureTransformMode = TTM_SPHERICALENVMAP
  36.  
  37.       ColorArg1 = TA_CURRENT
  38.       ColorArg2 = TA_TEXTURE ;RefMap
  39.  
  40.       ColorOp   = TOP_MODULATE
  41.  
  42.       AlphaOp   = TOP_DISABLE
  43.  
  44.       Filter = TF_LINEAR_MIP_POINT
  45.     }
  46.  
  47.     FillMode    = FILL_SOLID
  48.     Cull        = CULL_CW
  49.     DitherEnable        = TRUE
  50.     SpecularEnable      = FALSE
  51.  
  52.     LightingEnable      = TRUE
  53.     NormalizeNormals    = FALSE
  54.     LocalViewer         = FALSE
  55.  
  56.     AlphaBlendEnable    = TRUE
  57.     SrcBlend    = BLEND_ONE
  58.     DestBlend   = BLEND_ONE
  59.  
  60.     ZWriteEnable        = FALSE
  61.     ZFunc               = CMP_LESS
  62.   }
  63. }
  64.