//#####################################################################//
//                     TrueVision8 Shader Script                       //
//#####################################################################//
//                                                                     //
//  Common Shader for Flames					       //
//								       //
// You have to define the used textures before creating the Shader     //
// At the left, the texture filename (can be in a PAK file)            //
// At the right, the texture name that will be used in the engine      //
//								       //	
//#####################################################################//

TEXTURES 17
date\blood\blood1.BMP > blood1
date\blood\blood2.BMP > blood2
date\blood\blood3.BMP > blood3
date\blood\blood4.BMP > blood4
date\blood\blood5.BMP > blood5
date\Expl\expl1.jpg > Explosion1
date\Expl\expl2.jpg > Explosion2
date\Expl\expl3.jpg > Explosion3
date\Expl\expl4.jpg > Explosion4
date\Expl\expl5.jpg > Explosion5
date\Expl\expl6.jpg > Explosion6
date\Expl\expl7.jpg > Explosion7
date\Expl\expl8.jpg > Explosion8
date\eflash.bmp > flash1
date\light\light1.jpg > light1
date\light\light2.jpg > light2
date\light\light3.jpg > light3
//#####################################
// Shaders Declarations. 
//#####################################


SHADER bloodspray
{
   Layer map1
   {    

       //
       // Texture Animation :
       // Syntax : anim [FramePerSecond] [Tex1] [Tex2] ... [TexN] [0]
       //

         anim 20 blood1 blood2 blood3 blood4 blood5 [0]


    }
}   


SHADER Explosion
{
   Layer map1
   {    

       //
       // Texture Animation :
       // Syntax : anim [FramePerSecond] [Tex1] [Tex2] ... [TexN] [0]
       //

        anim 10 Explosion1 Explosion2 Explosion3 Explosion4 Explosion5 Explosion6 Explosion7 Explosion8 [0]
       blendFunc ONE ONE
       depthFunc NOWRITE  
    }


}   

SHADER flash
{
   Layer map1
   {    

         anim 10 flash1 [0]
      blendFunc ONE ONE
       depthFunc NOWRITE  
    }
     Layer map2
   {    

         anim 10 flash1 [0]
      blendFunc ONE ONE
       depthFunc NOWRITE  
    }
}   

SHADER lightning
{
//  Shader can contains several layers
   Layer map1
   {    

       //
       // Texture Animation :
       // Syntax : anim [FramePerSecond] [Tex1] [Tex2] ... [TexN] [0]
       //

         anim 10 light1 light2 light3 [0]
        
       // Blender functions
       // Two ways : Blend [NO|ADD|ALPHA|COLOR|LIGHTMAP]
       //            BlendFunc [ZERO|ONE|ALPHA|INVALPHA|COLOR|INVCOLOR|DESTCOLOR] [ONE|ZERO|SRCCOLOR|ALPHA|INVALPHA|COLOR|INVCOLOR]
       //                             src blend                                    dest blend
      
	 blendFunc ONE ONE
        depthFunc NOWRITE  
    }

  //  Layer map2
   // {
       // Other Tex Animation
       // for a blur effect
	
     //   anim 10 light1 light2 light3 [0]

      //   blendFunc ONE ONE
    //}

   


}
