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

  1. #include "..\MaterialDefine.def"
  2.  
  3. [Technique]
  4. {
  5. ;  Detail        = DETAIL_HIGH
  6.  
  7.   [Pass]
  8.   {
  9.     [Layer]
  10.     {
  11.       TextureSource     = TEXT_DIFFUSE
  12.       TexCoordIndex     = 0
  13.  
  14.       ColorArg1 = TA_TEXTURE
  15.       ColorArg2 = TA_DIFFUSE
  16.       ColorOp   = TOP_MODULATE
  17.  
  18.       AlphaOp   = TOP_DISABLE
  19.  
  20.       TextureAddressU = TADDRESS_CLAMP
  21.       TextureAddressV = TADDRESS_CLAMP
  22.       Filter = TF_LINEAR_MIP_POINT
  23.     }
  24.     [Layer]
  25.     {
  26.       TextureSource     = TEXT_AMBIENT
  27.       TexCoordIndex     = 1
  28.  
  29.       ColorArg1 = TA_CURRENT
  30.       ColorArg2 = TA_TEXTURE
  31.       ColorOp   = TOP_MODULATE
  32.  
  33.       TextureAddressU = TADDRESS_WRAP
  34.       TextureAddressV = TADDRESS_WRAP
  35.       Filter = TF_LINEAR_MIP_POINT
  36.     }
  37.  
  38. ;#include "..\VERTEXFORMATS\Bump0.vfd"
  39. ;    VertexShader    = "MoonBump_l0.vso"
  40.  
  41.     FillMode    = FILL_SOLID
  42.     Cull        = CULL_CW
  43.     DitherEnable        = TRUE
  44.     SpecularEnable      = FALSE
  45.  
  46.     LightingEnable      = TRUE
  47.     NormalizeNormals    = TRUE
  48.  
  49.     AlphaTestEnable    = FALSE
  50.  
  51.     AlphaBlendEnable    = FALSE
  52.     SrcBlend    = BLEND_ONE
  53.     DestBlend   = BLEND_ZERO
  54.  
  55.     ZWriteEnable        = TRUE
  56.     ZFunc               = CMP_LESS
  57.  
  58.     AmbientColor = 0,0,0,0
  59.  
  60.     DiffuseMaterialSource    = MCS_MATERIAL
  61.     SpecularMaterialSource    = MCS_MATERIAL
  62.     AmbientMaterialSource    = MCS_MATERIAL
  63.     EmissiveMaterialSource    = MCS_MATERIAL
  64.   }
  65.   [Pass]
  66.   {
  67.     [Layer]
  68.     {
  69.       TextureSource     = TEXT_SELFILLUM ; a textura erosseg
  70.       TexCoordIndex     = 0
  71.  
  72.       ColorArg1 = TA_TEXTURE
  73.       ColorArg2 = TA_INVDIFFUSE
  74.       ColorOp   = TOP_MODULATE
  75.  
  76.       AlphaOp   = TOP_DISABLE
  77.  
  78.       TextureAddressU = TADDRESS_CLAMP
  79.       TextureAddressV = TADDRESS_CLAMP
  80.       Filter = TF_LINEAR_MIP_POINT
  81.     }
  82.     [Layer]
  83.     {
  84.       TextureSource     = TEXT_GLOSSINESS
  85.       TexCoordIndex     = 1
  86.  
  87.       ColorArg1 = TA_CURRENT
  88.       ColorArg2 = TA_TEXTURE
  89.       ColorOp   = TOP_MODULATE
  90.  
  91.       AlphaOp = TOP_DISABLE
  92.  
  93.       TextureAddressU = TADDRESS_WRAP
  94.       TextureAddressV = TADDRESS_WRAP
  95.       Filter = TF_LINEAR_MIP_LINEAR
  96.     }
  97.     FillMode    = FILL_SOLID
  98.     Cull        = CULL_CW
  99.     DitherEnable        = TRUE
  100.     SpecularEnable      = FALSE
  101.  
  102.     LightingEnable      = TRUE
  103.     NormalizeNormals    = TRUE
  104.  
  105.     AlphaTestEnable    = FALSE
  106.  
  107.     AlphaBlendEnable    = TRUE
  108.     SrcBlend    = BLEND_ONE
  109.     DestBlend   = BLEND_ONE
  110.  
  111.     AmbientColor = 0,0,0,0
  112.     DiffuseColor = 5,5,5,0
  113.  
  114.     ZWriteEnable        = FALSE
  115.     ZFunc               = CMP_LESSEQUAL
  116.  
  117.     DiffuseMaterialSource    = MCS_MATERIAL
  118.     SpecularMaterialSource    = MCS_MATERIAL
  119.     AmbientMaterialSource    = MCS_MATERIAL
  120.     EmissiveMaterialSource    = MCS_MATERIAL
  121.   }
  122. }
  123.