![]() |
![]() |



Submitted by: rikh
Date Submitted: 2003-10-29 08:46:03
Downloads: textures.zip
textures/newshader
{
normalmod regenerate
vertexmod uvwave 1.000 1.000 sin 0.000 0.014 0.000 2.000
{
tex cubemap textures/sky
texsrc reflectionmap
rgbsrc constant 1.000 1.000 1.000
alphasrc constant 0.850
blendfunc blend
}
{
tex map textures/caustic
blendfunc add
texmod scroll -0.080 -0.030
rgbsrc wave sin 0.350 0.100 0.000 0.210
}
}

This is a pretty expensive shader effect, as it deforms the geometry of your model and then recalculates all the surface normals. These normals are then used in combination with a cube map to create a nice reflective surface with ripples running through it.
A second layer is added to give the water some more detail. This is just a simple scrolling texture of a caustic effect. This pass fades in and out a little to enhance the effect.
I have put the screenshots in front of a pretty ugly backdrop so you can see that the water is transparent.
[Recent Contributions] [Recent Shaders]
User Contributed Comments