public MotionBlurRenderPass( Camera cam, int renderScale ) {
public MotionBlurRenderPass( Camera cam ) {
	public MotionBlurRenderPass( Camera cam, int renderScale ) {		this.cam = cam;		DisplaySystem display = DisplaySystem.getDisplaySystem();		resetParameters();		//Create texture renderers and rendertextures(alternating between two not to overwrite pbuffers)		tRenderer = display.createTextureRenderer(				display.getWidth() / renderScale, display.getHeight() / renderScale, false, true, false, false,				TextureRenderer.RENDER_TEXTURE_2D, 0 );		tRenderer.setBackgroundColor( new ColorRGBA( 0.0f, 0.0f, 0.0f, 1.0f ) );		tRenderer.setCamera( cam );		tRenderer.forceCopy( true );		mainTexture = new Texture();		mainTexture.setWrap( Texture.WM_ECLAMP_S_ECLAMP_T );		mainTexture.setFilter( Texture.FM_LINEAR );		tRenderer.setupTexture( mainTexture );		//Create extract intensity shader		motionBlurShader = display.getRenderer().createGLSLShaderObjectsState();		if( !motionBlurShader.isSupported() ) {			supported = false;		}		else {			reloadShader();		}		tsObj = display.getRenderer().createTextureState();		tsObj.setEnabled( true );		tsObj.setTexture( mainTexture, 0 );		cullObj = display.getRenderer().createCullState();		cullObj.setEnabled( true );		cullObj.setCullMode( CullState.CS_BACK );		alphaObj = display.getRenderer().createAlphaState();		alphaObj.setEnabled( true );		alphaObj.setBlendEnabled( true );		alphaObj.setSrcFunction( AlphaState.SB_SRC_ALPHA );		alphaObj.setDstFunction( AlphaState.DB_ONE_MINUS_SRC_ALPHA );	}