fullScreenQuad.setCullMode(Spatial.CULL_NEVER);
fullScreenQuad.setCullMode(SceneElement.CULL_NEVER);
	public SketchRenderPass(Camera cam, int renderScale) {		DisplaySystem display = DisplaySystem.getDisplaySystem();		resetParameters();		//Create texture renderers and rendertextures for depth (only needed for some nvidia cards, like mine)		tRendererDepth = display.createTextureRenderer(				display.getWidth() / renderScale, display.getHeight() / renderScale, false, true, false, false,				TextureRenderer.RENDER_TEXTURE_2D, 0);		tRendererDepth.setBackgroundColor(new ColorRGBA(0.0f, 0.0f, 0.0f, 1.0f));		tRendererDepth.setCamera(cam);		textureDepth = new Texture();		textureDepth.setWrap(Texture.WM_CLAMP_S_CLAMP_T);		textureDepth.setFilter(Texture.FM_LINEAR);		tRendererDepth.setupTexture(textureDepth);		//Create extract normals and depth shader		normShader = display.getRenderer().createGLSLShaderObjectsState();		if(!normShader.isSupported()) {			supported = false;		} else {			normShader.load(SketchRenderPass.class.getClassLoader().getResource("com/jmex/effects/glsl/data/sketch_norm.vert"),					SketchRenderPass.class.getClassLoader().getResource("com/jmex/effects/glsl/data/sketch_norm.frag"));			normShader.setEnabled(true);			normShader.setUniform("nearClip", cam.getFrustumNear());			normShader.setUniform("diffClip", cam.getFrustumFar() - cam.getFrustumNear());		}		//Create sobel shader		sobelShader = display.getRenderer().createGLSLShaderObjectsState();		if(!sobelShader.isSupported()) {			supported = false;		} else {			sobelShader.load(SketchRenderPass.class.getClassLoader().getResource("com/jmex/effects/glsl/data/sketch_sobel.vert"),					SketchRenderPass.class.getClassLoader().getResource("com/jmex/effects/glsl/data/sketch_sobel.frag"));			sobelShader.setEnabled(true);		}		//Create fullscreen quad		fullScreenQuad = new Quad("FullScreenQuad", display.getWidth(), display.getHeight());		fullScreenQuad.getLocalRotation().set(0, 0, 0, 1);		fullScreenQuad.getLocalTranslation().set(display.getWidth() / 2, display.getHeight() / 2, 0);		fullScreenQuad.getLocalScale().set(1, 1, 1);		fullScreenQuad.setRenderQueueMode(Renderer.QUEUE_ORTHO);		fullScreenQuad.setCullMode(Spatial.CULL_NEVER);		fullScreenQuad.setTextureCombineMode(TextureState.REPLACE);		fullScreenQuad.setLightCombineMode(LightState.OFF);		TextureState ts = display.getRenderer().createTextureState();		ts.setEnabled(true);		fullScreenQuad.setRenderState(ts);		fullScreenQuad.updateRenderState();		fullScreenQuad.updateGeometricState(0.0f, true);		//setup shader for extracting normals and depth		noTexture = display.getRenderer().createTextureState();		noTexture.setEnabled(false);		noLights = display.getRenderer().createLightState();		noLights.setEnabled(false);		noMaterials = display.getRenderer().createMaterialState();		noMaterials.setEnabled(false);	}