if( KeyBindingManager.getKeyBindingManager().isValidCommand( "f", false ) ) { if ( showReflectionQuad.getCullMode() == SceneElement.CULL_NEVER ) { showReflectionQuad.setCullMode( SceneElement.CULL_ALWAYS ); showRefractionQuad.setCullMode( SceneElement.CULL_ALWAYS ); } else { showReflectionQuad.setCullMode( SceneElement.CULL_NEVER ); showRefractionQuad.setCullMode( SceneElement.CULL_NEVER ); }
if( KeyBindingManager.getKeyBindingManager().isValidCommand( "e", false ) ) { switchShowDebug();
	protected void simpleUpdate() {		if( KeyBindingManager.getKeyBindingManager().isValidCommand( "g", false ) ) {			waterEffectRenderPass.reloadShader();		}		if( KeyBindingManager.getKeyBindingManager().isValidCommand( "f", false ) ) {			if ( showReflectionQuad.getCullMode() == SceneElement.CULL_NEVER ) {				showReflectionQuad.setCullMode( SceneElement.CULL_ALWAYS );				showRefractionQuad.setCullMode( SceneElement.CULL_ALWAYS );			}			else {				showReflectionQuad.setCullMode( SceneElement.CULL_NEVER );				showRefractionQuad.setCullMode( SceneElement.CULL_NEVER );			}		}		if( KeyBindingManager.getKeyBindingManager().isValidCommand( "1", false ) ) {			waterEffectRenderPass.resetParameters();			textureScale = 0.02f;		}		if( KeyBindingManager.getKeyBindingManager().isValidCommand( "2", false ) ) {			waterEffectRenderPass.setWaterColorStart( ColorRGBA.black );			waterEffectRenderPass.setWaterColorEnd( ColorRGBA.black );			textureScale = 0.01f;			waterEffectRenderPass.setSpeedReflection( 0.05f );			waterEffectRenderPass.setSpeedRefraction( 0.01f );		}		float tpf = timer.getTimePerFrame();		if( KeyBindingManager.getKeyBindingManager().isValidCommand( "lower", true ) ) {			waterEffectRenderPass.setWaterHeight( waterEffectRenderPass.getWaterHeight() - tpf * 10.0f );		}		if( KeyBindingManager.getKeyBindingManager().isValidCommand( "higher", true ) ) {			waterEffectRenderPass.setWaterHeight( waterEffectRenderPass.getWaterHeight() + tpf * 10.0f );		}		skybox.getLocalTranslation().set( cam.getLocation() );		skybox.updateGeometricState( 0.0f, true );		Vector3f transVec = new Vector3f( cam.getLocation().x, waterEffectRenderPass.getWaterHeight(), cam.getLocation().z );		setTextureCoords( 0, transVec.x, -transVec.z, textureScale );		//vertex coords		setVertexCoords( transVec.x, transVec.y, transVec.z );	}