home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _77DFB45605114635B31932CB4E6FEDBB < prev    next >
Encoding:
Text File  |  2004-07-20  |  6.3 KB  |  270 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $BROKEN
  6. // $BROKENOPTIONSFILE
  7. // $SPECPOW
  8. // $REFL_STRENGTH
  9. // $CULLING
  10.  
  11.  
  12. Shader()
  13. {
  14.     ShaderQuality(5)
  15.     Pass()
  16.     {
  17.         //lighting()
  18.  
  19.         VertexShader("CarGB_CmCd_Bump_ps20.vsh")
  20.         Pixelshader("CarGB_CmCd_Bump_ps20.psh")
  21.  
  22.         !include("__tex1.mtt")
  23.         !include("__Dirt.mtt")
  24.         !include("__CloudsVS.mtt")
  25.         !include("__TerrainColormapVS.mtt")
  26.         !include("__DynamicCubeMap.mtt")
  27.         !include("__DirtNormalsMap.mtt")
  28.         !include("__Broken.mtt")        
  29.  
  30.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  31.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  32.  
  33.         !include(BFUNC)
  34.     }
  35.     sortweight("depth_sorted")
  36.     Cull(CULLING)
  37. }
  38.  
  39.  
  40. shader()
  41. {
  42.     ShaderQuality(3)
  43.     pass()
  44.     {
  45.         //Lighting()
  46.         Pixelshader("CarGB_CmCd_ps14.psh")
  47.         Vertexshader("CarGB_CmCd_ps14.vsh")
  48.  
  49.         !include("__tex1.mtt")
  50.         !include("__Dirt.mtt")
  51.         !include("__TerrainColormapVS.mtt")
  52.         !include("__CloudsVS.mtt")
  53.         !include("__DynamicCubeMap.mtt")
  54.         !include("__Broken.mtt")        
  55.  
  56.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  57.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  58.  
  59.         !include(BFUNC)
  60.     }
  61.     sortweight("depth_sorted")
  62.     Cull(CULLING)
  63. }
  64.  
  65.  
  66. shader()
  67. {
  68.     ShaderQuality(2)
  69.     pass()
  70.     {
  71.         //Lighting()
  72.         Pixelshader("CarG_Cm_ps11.psh")
  73.         Vertexshader("CarG_Cm_ps11.vsh")
  74.  
  75.         !include("__tex1.mtt")
  76.         !include("__Dirt.mtt")
  77.         !include("__TerrainColormapSmallVS.mtt")
  78.         !include("__DynamicCubeMap.mtt")
  79.  
  80.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  81.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // B - refl strength, A - dirt level
  82.  
  83.         !include(BFUNC)
  84.     }
  85.     pass()
  86.     {
  87.         //Lighting()
  88.         Pixelshader("CarGB_pass2_ps11.psh")
  89.         Vertexshader("CarGB_pass2_ps11.vsh")
  90.  
  91.         !include("__Broken.mtt")
  92.         !include("__TerrainColormapSmallVS.mtt")        
  93.  
  94.         BlendFunc("one", "one")
  95.     }
  96.     
  97.     sortweight("depth_sorted")
  98.     Cull(CULLING)
  99. }
  100.  
  101.  
  102.  
  103. shader()
  104. {
  105.     ShaderQuality(1)
  106.     pass()
  107.     {
  108.         Pixelshader("CarGB_ps11.psh")
  109.         Vertexshader("CarGB_ps11.vsh")
  110.  
  111.         !include("__tex1.mtt")
  112.         !include("__Dirt.mtt")
  113.         !include("__TerrainColormapSmallVS.mtt")
  114.         !include("__Broken.mtt")        
  115.  
  116.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  117.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // B - refl strength, A - dirt level
  118.  
  119.         !include(BFUNC)
  120.     }
  121.     
  122.     sortweight("depth_sorted")
  123.     Cull(CULLING)
  124. }
  125.  
  126. //=========================== GF2 ======================================
  127. shader()
  128. {
  129.     ShaderQuality(2)
  130.     pass()
  131.     {
  132.         Lighting()
  133.         tmu()
  134.         {
  135.             Texture()
  136.             {
  137.                 Mapchannel(0)
  138.                 Image(TEXTURE1)
  139.                 !include(TEX1OPTIONSFILE)
  140.             }
  141.             ColorOp("mul", "current", "texture", "current")
  142.             AlphaOp("arg1", "texture_a", "current", "current")
  143.         }
  144.         AmbientColor(%daycolor_a, %daycolor_a, %daycolor_a, 1.000)
  145.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  146.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  147.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  148.         SpecularPow(SPECPOW)
  149.         BlendFunc("one", "inv_src_alpha")
  150.                
  151.     }
  152.     pass()
  153.     {
  154.         Lighting()
  155.         tmu()
  156.         {
  157.             Texture()
  158.             {
  159.                 Mapchannel(0)
  160.                 Image(DIRT_GF2)
  161.                 !include(DIRTOPTIONSFILE)
  162.             }
  163.             ColorOp("mul", "tfactor", "current", "current")
  164.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  165.         }
  166.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  167.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  168.         
  169.         AmbientColor(%daycolor_a, %daycolor_a, %daycolor_a, 1.000)
  170.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  171.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  172.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  173.         SpecularPow(0.0)
  174.         BlendFunc("src_alpha", "inv_src_alpha")
  175.     }
  176.     pass()
  177.     {
  178.         Lighting()
  179.         !include("__Broken.mtt")
  180.  
  181.         !include("__LightningColorsSpecGF2.mtt")  
  182.         BlendFunc("one", "one")
  183.     }
  184.  
  185.     pass()
  186.     {
  187.         Lighting()
  188.         tmu()
  189.         {
  190.             TexGen("planar")
  191.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  192.             texture()
  193.             {
  194.                 Image(%colortexturesmall)
  195.                 addressfunc("clamp", "clamp", "clamp")
  196.             }
  197.             ColorOp("arg1", "tfactor", "current", "diffuse_a")
  198.             AlphaOp("add", "texture_a", "tfactor_a", "current")
  199.         }
  200.  
  201.         tmu()
  202.         {
  203.             ColorOp("arg1", "current", "texture", "current")
  204.             AlphaOp("add", "current", "diffuse_a", "current")
  205.         }         
  206.  
  207.         tfactor(0.0, 0.0, 0.0, %daycolor_a)
  208.  
  209.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  210.         DiffuseColor(0.0, 0.0, 0.0, 0.3)
  211.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  212.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  213.         SpecularPow(0.0)
  214.         
  215.         BlendFunc("inv_src_alpha", "src_alpha")        
  216.  
  217.         
  218.     }                    
  219. // odremowac po poprawce kuby ( liczba passow)
  220.     lightpass()
  221.     !include("spot_spotmap.mtt")    
  222.     
  223.     sortweight("depth_sorted")
  224.     Cull(CULLING)
  225. }
  226.  
  227. //=======================================================
  228. /*
  229. shader()
  230. {
  231.     ShaderQuality(0)
  232.     pass()
  233.     {
  234.         Lighting()
  235.         Pixelshader("CarGB_sq0.psh")
  236.         Vertexshader("Common_specular.vsh")
  237.         !include("__tex1.mtt")
  238.         !include("__Broken.mtt")
  239.         !include(BFUNC)                
  240.     }
  241.     sortweight("depth_sorted")
  242.     Cull(CULLING)
  243. }
  244. */
  245. shader()
  246. {
  247.     ShaderQuality(0)
  248.     pass()
  249.     {
  250.         Lighting()
  251.         !include("__tex1.mtt")
  252.  
  253.         !include("__LightningColorsSpecGF2.mtt")          
  254.         !include(BFUNC)
  255.     }
  256.     pass()
  257.     {
  258.         Lighting()
  259.         !include("__Broken.mtt")
  260.  
  261.         !include("__LightningColorsSpecGF2.mtt")  
  262.         BlendFunc("one", "one")
  263.     }
  264. //    lightpass()
  265. //    !include("spot_spotmap.mtt")    
  266.     sortweight("depth_sorted")
  267.     Cull(CULLING)
  268. }
  269.  
  270.