//DirectX 9.0 ASM Vertex Shader
vertex_program Obj.Spider.Vertex_Shader asm
{
	source Obj.Spider.Vertex_Shader.program.source
	syntax vs_1_1
}

//DirectX 9.0 ASM Pixel Shader
fragment_program Obj.Spider.Pixel_Shader asm
{
	source Obj.Spider.Pixel_Shader.program.source
	syntax ps_1_4
}


material spider/spider
{
	technique
	{
		//Rendering Pass: Single Pass (pass index: #0 )
		pass
		{
			//DirectX 9.0 ASM Pixel Shader
			fragment_program_ref Obj.Spider.Pixel_Shader
			{
				//Shader Constant: psConstVec
				param_indexed 0 float4 0.000000 0.500000 1.000000 -0.200000
				//Shader Constant: reflection_color
				param_indexed 1 float4 0.136842 0.115789 0.221053 0.000000
				//Shader Constant: sparkle_color
				param_indexed 2 float4 0.000000 0.000000 0.000000 0.273684
				//Shader Constant: sparkle_base_distort
				param_indexed 3 float4 0.250000 0.250000 0.050000 1.000000
				//Shader Constant: base_color
				param_indexed 4 float4 0.161716 0.505263 0.126316 0.347368
				//Shader Constant: zPos
				param_indexed 5 float4 0.000000 0.000000 1.000000 0.400000
			}
			//DirectX 9.0 ASM Vertex Shader
			vertex_program_ref Obj.Spider.Vertex_Shader
			{
				//Shader Constant: commonConst
				param_indexed 0 float4 0.000000 0.500000 1.000000 2.000000
				//Shader Constant: sparkle_scale
				param_indexed 1 float4 3.000000 0.000000 0.000000 1.000000
				//Shader Constant: view_proj_matrix
				param_indexed_auto 4 viewproj_matrix
				//Shader Constant: inv_view_matrix
				param_indexed_auto 8 inverse_view_matrix
				//Shader Constant: view_matrix
				param_indexed_auto 12 view_matrix
				//Shader Constant: eye_position
				param_indexed 2 float4 0.000000 0.000000 5.200000 1.000000
			}
			//Texture Stage 0
			//Car Paint Bump: "..\Media\Textures\Stones\SaturnSpline.dds"
			//State: D3DSAMP_ADDRESSU, Value : D3DTADDRESS_WRAP
			//State: D3DSAMP_ADDRESSV, Value : D3DTADDRESS_WRAP
			//State: D3DSAMP_MAGFILTER, Value : D3DTEXF_POINT
			//State: D3DSAMP_MINFILTER, Value : D3DTEXF_POINT
			//State: D3DSAMP_MIPFILTER, Value : D3DTEXF_POINT
			//State: D3DSAMP_ADDRESSW, Value : D3DTADDRESS_WRAP
			texture_unit
			{
				texture SaturnSpline.dds 2d
				tex_address_mode wrap
				filtering point point point
			}
			//Texture Stage 1
			//cubemap: "..\Media\Textures\grace_cube.dds"
			//State: D3DSAMP_ADDRESSU, Value : D3DTADDRESS_CLAMP
			//State: D3DSAMP_ADDRESSV, Value : D3DTADDRESS_CLAMP
			//State: D3DSAMP_MAGFILTER, Value : D3DTEXF_LINEAR
			//State: D3DSAMP_MINFILTER, Value : D3DTEXF_POINT
			//State: D3DSAMP_MIPFILTER, Value : D3DTEXF_NONE
			//State: D3DSAMP_ADDRESSW, Value : D3DTADDRESS_CLAMP
			texture_unit
			{
				texture room-dxt5.dds cubic
				tex_address_mode clamp
				filtering point linear none
			}
		}
	}
}


//Effect: CarPaintMetalic
material spider/tela
{
	technique
	{
		//Rendering Pass: Single Pass (pass index: #0 )
		pass
		{
			//DirectX 9.0 ASM Pixel Shader
			fragment_program_ref Obj.Spider.Pixel_Shader
			{
				//Shader Constant: psConstVec
				param_indexed 0 float4 0.000000 0.500000 1.000000 -0.200000
				//Shader Constant: reflection_color
				param_indexed 1 float4 0.136842 0.115789 0.221053 0.000000
				//Shader Constant: sparkle_color
				param_indexed 2 float4 0.000000 0.000000 0.000000 0.273684
				//Shader Constant: sparkle_base_distort
				param_indexed 3 float4 0.250000 0.250000 0.050000 1.000000
				//Shader Constant: base_color
				param_indexed 4 float4 1 0.505263 0.126316 0.347368
				//Shader Constant: zPos
				param_indexed 5 float4 0.000000 0.000000 1.000000 0.400000
			}
			//DirectX 9.0 ASM Vertex Shader
			vertex_program_ref Obj.Spider.Vertex_Shader
			{
				//Shader Constant: commonConst
				param_indexed 0 float4 0.000000 0.500000 1.000000 2.000000
				//Shader Constant: sparkle_scale
				param_indexed 1 float4 3.000000 0.000000 0.000000 1.000000
				//Shader Constant: view_proj_matrix
				param_indexed_auto 4 viewproj_matrix
				//Shader Constant: inv_view_matrix
				param_indexed_auto 8 inverse_view_matrix
				//Shader Constant: view_matrix
				param_indexed_auto 12 view_matrix
				//Shader Constant: eye_position
				param_indexed 2 float4 0.000000 0.000000 5.200000 1.000000
			}
			//Texture Stage 0
			//Car Paint Bump: "..\Media\Textures\Stones\SaturnSpline.dds"
			//State: D3DSAMP_ADDRESSU, Value : D3DTADDRESS_WRAP
			//State: D3DSAMP_ADDRESSV, Value : D3DTADDRESS_WRAP
			//State: D3DSAMP_MAGFILTER, Value : D3DTEXF_POINT
			//State: D3DSAMP_MINFILTER, Value : D3DTEXF_POINT
			//State: D3DSAMP_MIPFILTER, Value : D3DTEXF_POINT
			//State: D3DSAMP_ADDRESSW, Value : D3DTADDRESS_WRAP
			texture_unit
			{
				texture SaturnSpline.dds 2d
				tex_address_mode wrap
				filtering point point point
			}
			//Texture Stage 1
			//cubemap: "..\Media\Textures\grace_cube.dds"
			//State: D3DSAMP_ADDRESSU, Value : D3DTADDRESS_CLAMP
			//State: D3DSAMP_ADDRESSV, Value : D3DTADDRESS_CLAMP
			//State: D3DSAMP_MAGFILTER, Value : D3DTEXF_LINEAR
			//State: D3DSAMP_MINFILTER, Value : D3DTEXF_POINT
			//State: D3DSAMP_MIPFILTER, Value : D3DTEXF_NONE
			//State: D3DSAMP_ADDRESSW, Value : D3DTADDRESS_CLAMP
			texture_unit
			{
				texture room-dxt5.dds cubic
				tex_address_mode clamp
				filtering point linear none
			}
		}
	}
}

material spider/cubemap
{
	technique
	{
		pass
		{
			lighting off
			depth_write off

			texture_unit
			{
				//cubic_texture cube1_fr.jpg cube1_bk.jpg cube1_lf.jpg cube1_rt.jpg cube1_up.jpg cube1_dn.jpg separateUV
				cubic_texture one.jpg one.jpg one.jpg one.jpg one.jpg one.jpg separateUV
			}
		}
	}
}