Skip to content

Commit

Permalink
update README example usage code
Browse files Browse the repository at this point in the history
  • Loading branch information
YasharSL committed Jul 16, 2023
1 parent f28bad4 commit 775a8f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 775a8f5

Please sign in to comment.