forked from teamnwah/openmw-tes3coop
63 lines
1,008 B
Text
63 lines
1,008 B
Text
|
vertex_program Water/GlassVP cg
|
||
|
{
|
||
|
source GlassVP.cg
|
||
|
entry_point glass_vp
|
||
|
profiles vs_1_1 arbvp1
|
||
|
|
||
|
default_params
|
||
|
{
|
||
|
param_named_auto worldViewProj worldviewproj_matrix
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
fragment_program Water/GlassFP cg
|
||
|
{
|
||
|
source GlassFP.cg
|
||
|
entry_point main_ps
|
||
|
profiles ps_2_0 arbfp1
|
||
|
}
|
||
|
|
||
|
material Water/Compositor
|
||
|
{
|
||
|
technique
|
||
|
{
|
||
|
pass
|
||
|
{
|
||
|
depth_check off
|
||
|
vertex_program_ref Water/GlassVP
|
||
|
{
|
||
|
param_named_auto timeVal time 0.25
|
||
|
param_named scale float 0.1
|
||
|
}
|
||
|
|
||
|
fragment_program_ref Water/GlassFP
|
||
|
{
|
||
|
param_named tintColour float4 0 0.35 0.35 1
|
||
|
}
|
||
|
|
||
|
texture_unit RT
|
||
|
{
|
||
|
tex_coord_set 0
|
||
|
tex_address_mode clamp
|
||
|
filtering linear linear linear
|
||
|
}
|
||
|
|
||
|
texture_unit
|
||
|
{
|
||
|
texture WaterNormal1.tga 2d
|
||
|
tex_coord_set 1
|
||
|
//tex_address_mode clamp
|
||
|
filtering linear linear linear
|
||
|
}
|
||
|
texture_unit
|
||
|
{
|
||
|
texture caustic_0.png 2d
|
||
|
tex_coord_set 2
|
||
|
//tex_address_mode clamp
|
||
|
filtering linear linear linear
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|