├── .babelrc
├── .gitignore
├── images
├── 80s.png
├── haze.png
├── white.png
├── lookup.png
├── rainbow.png
├── original.png
└── pinkHaze.png
├── .npmignore
├── shaders
├── pass.vert
└── lut.frag
├── index.html
├── demo-no-post.js
├── LICENSE.md
├── package.json
├── app.js
├── demo.js
└── README.md
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | presets: [ "es2015" ]
3 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | bower_components
2 | node_modules
3 | *.log
4 | .DS_Store
5 | bundle.js
6 |
--------------------------------------------------------------------------------
/images/80s.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Experience-Monks/threejs-post-process-example/HEAD/images/80s.png
--------------------------------------------------------------------------------
/images/haze.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Experience-Monks/threejs-post-process-example/HEAD/images/haze.png
--------------------------------------------------------------------------------
/images/white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Experience-Monks/threejs-post-process-example/HEAD/images/white.png
--------------------------------------------------------------------------------
/images/lookup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Experience-Monks/threejs-post-process-example/HEAD/images/lookup.png
--------------------------------------------------------------------------------
/images/rainbow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Experience-Monks/threejs-post-process-example/HEAD/images/rainbow.png
--------------------------------------------------------------------------------
/images/original.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Experience-Monks/threejs-post-process-example/HEAD/images/original.png
--------------------------------------------------------------------------------
/images/pinkHaze.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Experience-Monks/threejs-post-process-example/HEAD/images/pinkHaze.png
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | bower_components
2 | node_modules
3 | *.log
4 | .DS_Store
5 | bundle.js
6 | test
7 | test.js
8 | demo/
9 | .npmignore
10 | LICENSE.md
--------------------------------------------------------------------------------
/shaders/pass.vert:
--------------------------------------------------------------------------------
1 | varying vec2 vUv;
2 | void main() {
3 | vUv = uv;
4 | gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
5 | }
6 |
--------------------------------------------------------------------------------
/shaders/lut.frag:
--------------------------------------------------------------------------------
1 | precision mediump float;
2 |
3 | #define LUT_FLIP_Y
4 |
5 | varying vec2 vUv;
6 | uniform sampler2D tDiffuse;
7 | uniform sampler2D tLookup;
8 |
9 | #pragma glslify: lut = require('glsl-lut')
10 |
11 | void main () {
12 | gl_FragColor = texture2D(tDiffuse, vUv);
13 | gl_FragColor.rgb = lut(gl_FragColor, tLookup).rgb;
14 | }
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | threejs-post-process-example
7 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/demo-no-post.js:
--------------------------------------------------------------------------------
1 | /*
2 | Example without any post-processing.
3 | Renders the scene directly to the