Desperately needed clipping for my glsl-water, so I hacked it in as a new renderstate…fast hack so I dunno if it's the best way, but at least it works…
maybe renanse or mojo can use some of it…
* Copyright (c) 2003-2005 jMonkeyEngine
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* * Redistributions of source code must retain the above copyright