orms.map.value.needsUpdate = true;

					mipMat.uniforms.map.value = linearTarget.texture;
					delete mipMat.defines.NEAREST_FILTER;
					mipMat.needsUpdate = true;

				} else {


					planeMat.uniforms.map.value.minFilter = THREE.NearestMipMapNearestFilter;
					planeMat.uniforms.map.value.needsUpdate = true;

					mipMat.uniforms.map.value = nearestTarget.texture;
					mipMat.defines.NEAREST_FILTER = '';
					mipMat.needsUpdate = true;

				}

			}

			function updateTexture() {

				let texture = ogTex