2012-07-19 14:23:30 +00:00
|
|
|
material Water
|
2012-07-04 22:39:25 +00:00
|
|
|
{
|
2013-02-24 09:28:50 +00:00
|
|
|
allow_fixed_function false
|
|
|
|
|
2012-07-04 22:39:25 +00:00
|
|
|
pass
|
|
|
|
{
|
2013-01-10 00:46:00 +00:00
|
|
|
emissive 1.0 1.0 1.0
|
2012-07-20 12:45:42 +00:00
|
|
|
ambient 0 0 0
|
|
|
|
diffuse 0 0 0 1
|
|
|
|
specular 0 0 0 32
|
|
|
|
|
2012-07-04 22:39:25 +00:00
|
|
|
vertex_program water_vertex
|
|
|
|
fragment_program water_fragment
|
|
|
|
|
2012-07-19 14:23:30 +00:00
|
|
|
cull_hardware none
|
2013-02-05 13:29:46 +00:00
|
|
|
|
|
|
|
scene_blend alpha_blend
|
|
|
|
depth_write off
|
2012-07-19 14:23:30 +00:00
|
|
|
|
2012-07-04 22:39:25 +00:00
|
|
|
texture_unit reflectionMap
|
|
|
|
{
|
|
|
|
texture_alias WaterReflection
|
2012-07-19 14:23:30 +00:00
|
|
|
tex_address_mode clamp
|
2012-07-04 22:39:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
texture_unit refractionMap
|
|
|
|
{
|
2013-02-03 14:46:23 +00:00
|
|
|
direct_texture WaterRefraction
|
2012-07-19 14:23:30 +00:00
|
|
|
tex_address_mode clamp
|
2012-07-04 22:39:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
texture_unit depthMap
|
|
|
|
{
|
2012-07-19 14:23:30 +00:00
|
|
|
texture_alias SceneDepth
|
|
|
|
tex_address_mode clamp
|
2012-07-04 22:39:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
texture_unit normalMap
|
|
|
|
{
|
2013-12-30 23:54:40 +00:00
|
|
|
texture water_nm.png
|
2012-07-04 22:39:25 +00:00
|
|
|
}
|
2013-02-01 22:43:23 +00:00
|
|
|
|
|
|
|
texture_unit rippleNormalMap
|
|
|
|
{
|
|
|
|
direct_texture RippleNormal
|
|
|
|
tex_address_mode border
|
|
|
|
tex_border_colour 0.5 0.5 1.0
|
|
|
|
}
|
2013-02-24 09:28:50 +00:00
|
|
|
|
2012-07-20 12:45:42 +00:00
|
|
|
// for simple_water
|
|
|
|
texture_unit animatedTexture
|
|
|
|
{
|
|
|
|
create_in_ffp true
|
|
|
|
scale 0.1 0.1
|
|
|
|
alpha_op_ex source1 src_manual src_current 0.7
|
|
|
|
}
|
2013-03-20 17:34:54 +00:00
|
|
|
|
|
|
|
texture_unit shadowMap0
|
|
|
|
{
|
|
|
|
content_type shadow
|
|
|
|
tex_address_mode clamp
|
|
|
|
filtering none
|
|
|
|
}
|
|
|
|
texture_unit shadowMap1
|
|
|
|
{
|
|
|
|
content_type shadow
|
|
|
|
tex_address_mode clamp
|
|
|
|
filtering none
|
|
|
|
}
|
|
|
|
texture_unit shadowMap2
|
|
|
|
{
|
|
|
|
content_type shadow
|
|
|
|
tex_address_mode clamp
|
|
|
|
filtering none
|
|
|
|
}
|
2012-07-04 22:39:25 +00:00
|
|
|
}
|
|
|
|
}
|