Use waterpass-effect as texture on spatial?

hi community,

i'd like to use the water-refractions as an effect on a spatial (for a waterelemental). i know it's possible because i accidently made the water cover my whole terrain, refracting its texture. i'm not sure how i did it, i'll try to reproduce it.

Try looking at the test's in src/jmetest/efffects/water/*

This is from TestSimpleQuadWater:

waterEffectRenderPass = new WaterRenderPass( cam, 4, false, true );
//set equations to use z axis as up
waterEffectRenderPass.setWaterPlane( new Plane( new Vector3f( 0.0f, 0.0f, 1.0f ), 0.0f ) );
waterEffectRenderPass.setTangent( new Vector3f( 1.0f, 0.0f, 0.0f ) );
waterEffectRenderPass.setBinormal( new Vector3f( 0.0f, 1.0f, 0.0f ) );

waterQuad = new Quad( "waterQuad", 100, 100 );

waterEffectRenderPass.setWaterEffectOnSpatial( waterQuad );
rootNode.attachChild( waterQuad );

waterEffectRenderPass.setWaterEffectOnSpatial( waterQuad );
sounds like what you are looking for.. waterTest's are the way to learn no matter what=)

does this work on nodes as well? ( can't look at the source right now)