vertex_program ocean_vp cg
{
	source ocean.cg
	entry_point main_vp
	profiles vs_1_1 arbvp1


	default_params
	{
		param_named_auto WorldViewProj worldviewproj_matrix
		param_named_auto eyePosition camera_position_object_space
	}
}

fragment_program ocean_fp cg
{
	source ocean.cg
	entry_point main_fp
	profiles ps_2_0 arbfp1
}


material OceanCgDay
{
	receive_shadows off

	technique
	{
		pass
		{
			cull_hardware none
			cull_software none
			vertex_program_ref ocean_vp
			{
				param_named BumpScale float 0.268
				param_named textureScale float2 60 30
				param_named bumpSpeed float2 0.02 0.002
				param_named_auto time time_0_x 100.0
				param_named waveFreq float 0.006
				param_named waveAmp float 0
			}

			fragment_program_ref ocean_fp
			{
				param_named deepColor float4 0.0 0.3 0.5 1.0
				param_named shallowColor float4 0.1 0.45 0.7 1.0
				param_named reflectionColor float4 0.3 0.3 0.3 1.0
				param_named reflectionAmount float 0.824
				param_named reflectionBlur float 0
				param_named waterAmount float 0.3
				param_named fresnelPower float 5.12
				param_named fresnelBias float 0.127
				param_named hdrMultiplier float 1.5
			}

			texture_unit
			{
				texture waves2.dds
				tex_coord_set 0
				filtering linear linear linear
			}

			texture_unit
			{
				texture shadersky.jpg
			}
			texture_unit
			{
				texture ocean.jpg
				filtering trilinear
			}
		}
	}
}

material OceanCgDarkDay
{
	receive_shadows off

	technique
	{
		pass
		{
			cull_hardware none
			cull_software none
			vertex_program_ref ocean_vp
			{
				param_named BumpScale float 0.268
				param_named textureScale float2 60 30
				param_named bumpSpeed float2 0.02 0.002
				param_named_auto time time_0_x 100.0
				param_named waveFreq float 0.006
				param_named waveAmp float 0
			}

			fragment_program_ref ocean_fp
			{
				param_named deepColor float4 0.2 0.35 0.5 1.0
				param_named shallowColor float4 0.3 0.5 0.7 1.0
				param_named reflectionColor float4 0.3 0.3 0.3 1.0
				param_named reflectionAmount float 0.824
				param_named reflectionBlur float 0
				param_named waterAmount float 0.3
				param_named fresnelPower float 5.12
				param_named fresnelBias float 0.127
				param_named hdrMultiplier float 1.5
			}

			texture_unit
			{
				texture waves2.dds
				tex_coord_set 0
				filtering linear linear linear
			}

			texture_unit
			{
				texture shaderdarksky.png
			}
			texture_unit
			{
				texture ocean.jpg
				filtering trilinear
			}
		}
	}
}

material OceanCgNight
{
	receive_shadows off

	technique
	{
		pass
		{

			cull_hardware none
			cull_software none
			vertex_program_ref ocean_vp
			{
				param_named BumpScale float 0.268
				param_named textureScale float2 60 30
				param_named bumpSpeed float2 0.02 0.002
				param_named_auto time time_0_x 100.0
				param_named waveFreq float 0.006
				param_named waveAmp float 0
			}

			fragment_program_ref ocean_fp
			{
				param_named deepColor float4 0.0 0.3 0.5 1.0
				param_named shallowColor float4 0.1 0.45 0.7 1.0
				param_named reflectionColor float4 0.3 0.3 0.3 1.0
				param_named reflectionAmount float 0.824
				param_named reflectionBlur float 0
				param_named waterAmount float 0.3
				param_named fresnelPower float 5.12
				param_named fresnelBias float 0.127
				param_named hdrMultiplier float 1.5
			}

			texture_unit
			{
				texture waves2.dds
				tex_coord_set 0
				filtering linear linear linear
			}

			texture_unit
			{
				texture shaderstars.jpg
			}
			texture_unit
			{
				texture ocean.jpg
				filtering trilinear
			}
		}
	}
}

material OceanCgDarkNight
{
	receive_shadows off

	technique
	{
		pass
		{

			cull_hardware none
			cull_software none
			vertex_program_ref ocean_vp
			{
				param_named BumpScale float 0.268
				param_named textureScale float2 60 30
				param_named bumpSpeed float2 0.02 0.002
				param_named_auto time time_0_x 100.0
				param_named waveFreq float 0.006
				param_named waveAmp float 0
			}

			fragment_program_ref ocean_fp
			{
				param_named deepColor float4 0.2 0.35 0.5 1.0
				param_named shallowColor float4 0.3 0.5 0.7 1.0
				param_named reflectionColor float4 0.3 0.3 0.3 1.0
				param_named reflectionAmount float 0.824
				param_named reflectionBlur float 0
				param_named waterAmount float 0.3
				param_named fresnelPower float 5.12
				param_named fresnelBias float 0.127
				param_named hdrMultiplier float 1.5
			}

			texture_unit
			{
				texture waves2.dds
				tex_coord_set 0
				filtering linear linear linear
			}

			texture_unit
			{
				texture shaderdarkstars.png
			}
			texture_unit
			{
				texture ocean.jpg
				filtering trilinear
			}
		}
	}
}
