diff --git a/README.md b/README.md index 4b64de5..93e83e9 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,11 @@ via npm ```js import * as THREE from 'three' -import { EffectComposer, Pass, FullScreenQuad } from 'three/examples/jsm/postprocessing/EffectComposer' +/// +import { EffectComposer } from "three/examples/jsm/postprocessing/EffectComposer"; +import { Pass, FullScreenQuad } from "three/examples/jsm/postprocessing/Pass"; +/// For Three.js r147 and below, use the following line +/// import { EffectComposer, Pass, FullScreenQuad } from 'three/examples/jsm/postprocessing/EffectComposer' import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass' import { LensDistortionPassGen } from 'three-lens-distortion' diff --git a/package.json b/package.json index 6ebde7e..25c49be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "three-lens-distortion", - "version": "1.0.0", + "version": "1.0.1", "author": "ycw (https://github.com/ycw)", "repository": "github:ycw/three-lens-distortion", "main": "src/index.js",