home *** CD-ROM | disk | FTP | other *** search
/ Level 2005 Christmas (DVD) / Level_2005-XMAS_134_DVD_Knightshift.iso / Install / WDFiles / Shaders.wd / Shaders_debug.sha < prev    next >
Encoding:
Text File  |  2005-12-07  |  423 b   |  44 lines

  1. vector vAmbientLightColor;
  2.  
  3. vertexshader vsDebug = 
  4.  
  5.                 decl
  6.                 {
  7.                     stream 0;
  8.                     float         v0[3];
  9.                 }
  10.  
  11.                 asm
  12.                 {
  13.                     vs.1.1                                        
  14.                     m4x4 oPos, v0, c[0]
  15.                 };
  16.  
  17.  
  18. pixelshader psDebug = 
  19.  
  20.         asm    
  21.         {
  22.             ps.1.1
  23.             mov r0,c0
  24.         };
  25.  
  26. technique tDebug
  27. {    
  28.     pass p0
  29.     {
  30.         VertexShader = <vsDebug>;
  31.         PixelShader  = <psDebug>;
  32.  
  33.         PixelShaderConstant[0]     =    <vAmbientLightColor>;
  34.  
  35.         AlphaBlendEnable = False;
  36.     }
  37. }
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.