vertex_program PlainTexture_VS cg			
{
	source GameObjStandard.cg
	entry_point main_plain_texture_vp	
	profiles vs_1_1					

        default_params					
	{
		
		param_named_auto worldViewProj worldviewproj_matrix	
		param_named myUV float2 0.0 0.0

	}
}

fragment_program PlainTexture_PS cg			
{
	source GameObjStandard.cg		
	entry_point main_plain_texture_fp	
	profiles ps_1_1					
}

material PlainTexture
{
	technique					
	{
		pass					
		{
			vertex_program_ref PlainTexture_VS	
			{
			}
			fragment_program_ref PlainTexture_PS	
			{
			}
			texture_unit
			{
				texture spider_col.tga 2d		
			}
		}
	}
}

fragment_program TextureModColor_PS cg
{
	source GameObjStandard.cg
	
	entry_point main_tex_mod_col_fp
	
	profiles ps_1_1

	default_params
	{
		param_named colorModulate float4 1.0 1.0 1.0 1.0	
	}
}

		
material TextureModColorNpcTemplate
{
	technique
	{
		pass
		{			
			scene_blend alpha_blend	
depth_write on
depth_check on
			texture_unit
			{
				texture_alias diff
				texture grey.tga 2d
		
			}					
			
			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{				
				param_named_auto colorModulate custom 1
			}
		}
	}
}
material TextureModColorNpcTemplate_e
{
	technique
	{
		pass
		{			
			scene_blend add	
depth_write on
depth_check on
			texture_unit
			{
				texture_alias diff
				texture grey.tga 2d
		
			}					
			
			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{				
				param_named_auto colorModulate custom 1
			}
		}
	}
}

material TextureModColorNpcTemplate_do
{
	technique
	{
		pass
		{			
			scene_blend add	
depth_write off
depth_check off
			texture_unit
			{
				texture_alias diff
				texture grey.tga 2d
		
			}					
			
			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{				
				param_named_auto colorModulate custom 1
			}
		}
	}
}

material fxCollectedItem
{
	technique
	{
		pass
		{
			scene_blend alpha_blend				
			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{				
				param_named_auto colorModulate custom 1
			}

			scene_blend alpha_blend
			texture_unit
			{
				texture fx05.tga				
			}
		}
	}
}

material TextureModColor
{
	technique
	{
		pass
		{
			scene_blend alpha_blend				
			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{				
				param_named_auto colorModulate custom 1
			}
			texture_unit
			{
				texture grey.tga 2d		
			}
		}
	}
}

material TextureModColorGradTex
{
	technique
	{
		pass
		{			
			scene_blend alpha_blend					
			
			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{
				
				param_named_auto colorModulate custom 1
			}
			texture_unit
			{
				texture gradhbw01.tga 2d		
			}
		}
	}
}

material TextureModColorStats
{
	technique
	{
		pass
		{
			scene_blend alpha_blend			
			
			vertex_program_ref PlainTexture_VS
			{
				param_named_auto myUV custom 2		
			}
			fragment_program_ref TextureModColor_PS
			{
				
				param_named_auto colorModulate custom 1	
			}
			texture_unit
			{
				texture stats.tga 2d		
			}
		}
	}
}



material TextureModColorDigits
{
	technique
	{
		pass
		{
			scene_blend alpha_blend
						
			vertex_program_ref PlainTexture_VS
			{

param_named_auto myUV custom 2
				
			}
			fragment_program_ref TextureModColor_PS
			{
				
				param_named_auto colorModulate custom 1				

			}
			texture_unit
			{
				texture digits.tga 2d		
			}
		}
	}
}

material ShadowDot
{

technique
	{
		pass
		{
			scene_blend alpha_blend
			depth_write off	
			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{
				
				param_named_auto colorModulate custom 1
				

			}
			texture_unit
			{
				texture shadow_dot.tga 2d		
			}
		}
	}

	
}


material ShootFx
{
technique
	{
		pass
		{		
			scene_blend add

			vertex_program_ref PlainTexture_VS
			{}
			fragment_program_ref TextureModColor_PS
			{
				
				param_named_auto colorModulate custom 1
			}
			texture_unit
			{
				texture iatlas.tga		
			}								
		}
	}
}

material ShootNpcFx
{
technique
	{
		pass
		{		
			scene_blend add
			texture_unit
			{
				texture iatlas.tga		
			}								
		}
	}
}


material TextureModColorNpcSpider : TextureModColorNpcTemplate
{
	set_texture_alias diff	spider_col.tga				
}

material TextureModColorNpcSpider_e : TextureModColorNpcTemplate_e
{
	set_texture_alias diff	spider_col_e.tga				
}

material TextureModColorNpcHawk : TextureModColorNpcTemplate
{
	set_texture_alias diff	npc_hawk.tga				
}

material TextureModColorNpcHawk_e : TextureModColorNpcTemplate_e
{
	set_texture_alias diff	npc_hawk_e.tga				
}

material TextureModColorNpcBat : TextureModColorNpcTemplate
{
	set_texture_alias diff	npc_bat.tga				
}
material TextureModColorNpcBat_e : TextureModColorNpcTemplate_e
{
	set_texture_alias diff	npc_bat_e.tga				
}

material TextureModColorNpcRoach : TextureModColorNpcTemplate
{
	set_texture_alias diff	npc_roach.tga				
}
material TextureModColorNpcRoach_e : TextureModColorNpcTemplate_e
{
	set_texture_alias diff	npc_roach_e.tga				
}

material TextureModColorNpcWrath : TextureModColorNpcTemplate
{
	set_texture_alias diff	npc_wrath.tga				
}
material TextureModColorNpcWrath_e : TextureModColorNpcTemplate_e
{
	set_texture_alias diff	npc_wrath_e.tga				
}

material TextureModColorNpcCobra : TextureModColorNpcTemplate
{
	set_texture_alias diff	npc_cobra.tga				
}
material TextureModColorNpcCobra_e : TextureModColorNpcTemplate_e
{
	set_texture_alias diff	npc_cobra_e.tga				
}

material TextureModColorNpcGhost : TextureModColorNpcTemplate_do
{
	set_texture_alias diff	npc_ghost.tga				
}
material TextureModColorNpcGhost_e : TextureModColorNpcTemplate_do
{
	set_texture_alias diff	npc_ghost_e.tga				
}
material TextureModColorNpcSkeleton : TextureModColorNpcTemplate
{
	set_texture_alias diff	npc_skeleton.tga				
}
material TextureModColorNpcSkeleton_e : TextureModColorNpcTemplate_e
{
	set_texture_alias diff	npc_skeleton_e.tga				
}
material TextureModColorNpcSpiritColorized: TextureModColorNpcTemplate_do
{
	set_texture_alias diff	npc_spiritcol.tga				
}
material obelisk-base
{
    technique
    {

		pass
		{
			scene_blend alpha_blend
			ambient 0.1 0.1 0.1 
			texture_unit
			{				
				texture obelisk01.tga				
			}				
			
			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{				
				param_named_auto colorModulate custom 1
			}			
	

		}
	}
}

material obelisk-fx
{
	technique
	{
		pass
		{					
			scene_blend alpha_blend				
		
			texture_unit
			{
				texture fx06.tga 2d		
			}

			texture_unit
			{
				scroll_anim 0.15 0.15
				texture gradhbw10.tga 2d
				colour_op add	
			}

		}
	}
}


material bonsai01
{
	technique
	{
		pass
		{		
			scene_blend alpha_blend 
		
			texture_unit 
			{
				texture bonsai01.tga
			}

			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{
				
				param_named_auto colorModulate custom 1

			}

			depth_write on
			alpha_rejection greater 70 

		}
	}
}

material tree_deadmat
{
	technique
	{
		pass
		{		
			scene_blend alpha_blend 			

			texture_unit 
			{
				texture tree_dead01.tga
			}

			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{				
				param_named_auto colorModulate custom 1
			}

			depth_write on
			alpha_rejection greater 70 
		}
	}
}

material tree_dry
{
	technique
	{
		pass
		{
			scene_blend alpha_blend 
			depth_write on
			alpha_rejection greater 60
			texture_unit 
			{
				texture tree_dry.tga
			}

			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{				
				param_named_auto colorModulate custom 1
			}
		}
	}
}

material iatlasmat
{
	technique
	{
		pass
		{		
			scene_blend alpha_blend 			

			texture_unit 
			{
				texture iatlas.tga
			}

			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{				
				param_named_auto colorModulate custom 1
			}		

		}
	}
}

material kidmat
{
    technique
    {

		pass
		{
			scene_blend alpha_blend 			
			texture_unit
			{				
				texture kid.tga
				
			}
			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{
				
				param_named_auto colorModulate custom 1

			}	


		}
	}
}

material kidmat_e
{
    technique
    {
		pass
		{
			scene_blend add
			texture_unit
			{				
				texture kid_e.tga
				
			}
			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{
				
				param_named_auto colorModulate custom 1

			}	


		}
	}
}

material kidmat_s
{
    technique
    {
		pass
		{	
			scene_blend alpha_blend 		
			texture_unit
			{				
				texture kid_s.tga				
			}
			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{				
				param_named_auto colorModulate custom 1
			}	
		}
	}
}

material packmat
{
    technique
    {

		pass
		{
			scene_blend alpha_blend 			
			texture_unit
			{				
				texture pack.tga
				
			}
			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{
				
				param_named_auto colorModulate custom 1

			}	


		}
	}
}
material packmat_s
{
    technique
    {

		pass
		{
			scene_blend alpha_blend 
			texture_unit
			{				
				texture pack_s.tga				
			}
			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{
				
				param_named_auto colorModulate custom 1

			}	


		}
	}
}


material rock01mat
{
	technique
	{
		pass
		{
			scene_blend alpha_blend 

			texture_unit
			{
				texture rock01.tga
			}

			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{
				
				param_named_auto colorModulate custom 1

			}	

			depth_write on
			alpha_rejection greater 70 

		}

	}

}



material pl_sel
{
    technique
    {

		pass
		{
			scene_blend alpha_blend 
			ambient 0.9 0.9 0.9
			texture_unit
			{
				
				texture kid.tga				
			}
		
			vertex_program_ref PlainTexture_VS
			{
			}
			fragment_program_ref TextureModColor_PS
			{
				
				param_named_auto colorModulate custom 1

			}	


		}
	}
}
