# three-post-processing

> Simple PostProcessing on three.js

Latest version **1.0.2** (published 2020-01-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install three-post-processing
pnpm add three-post-processing
yarn add three-post-processing
bun add three-post-processing
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-01-13 |
| First published | 2019-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 14 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | ukonpower |
| Maintainers | ukonpower |
| Keywords | threejs, webgl |

## Links

- npm: https://www.npmjs.com/package/three-post-processing
- Repository: https://github.com/ukonpower/three-post-processing
- Homepage: https://github.com/ukonpower/three-post-processing#readme
- Issues: https://github.com/ukonpower/three-post-processing/issues
- npm.io page: https://npm.io/package/three-post-processing

## Dependencies (1)

- [three](https://npm.io/package/three.md) ^0.112.0

## Recent versions

- 1.0.2 (latest) — 2020-01-13
- 1.0.1 — 2019-05-13
- 1.0.0 — 2019-05-11

## README

# three-post-processing
multi pass post processing on [three.js](https://github.com/mrdoob/three.js).

## Usage
### Get Library
#### link script
Download the [library](https://raw.githubusercontent.com/ukonpower/three-post-processing/master/build/three-post-processing.js) and include in your HTML.

```html
<script src="three-post-processing.js"></script>
```

#### npm
or you can get from [npm](https://www.npmjs.com/package/three-post-processing).

```bash
$ npm i three-post-processing
```

##### Import

```javascript
import TPP from 'three-post-processing';
```

#### Create Post Processing
```javascript
this.uniforms = {
  time:{
    value: 0
  }
}

let pp1 = {
  fragmentShader: require('./post-processing1.glsl'),
  uniforms:this.uniforms
};

let pp2 = {
  fragmentShader: require('./post-processing2.glsl'),
  uniforms:this.uniforms,
}

this.pp_params = [pp1,pp2];

this.tpp = new TPP(this.renderer,this.pp_params);
```

#### Render Post Processing
```javascript
//update post-processing uniforms
this.uniforms.time.value += 0.01;

//render scene with post-processing
this.tpp.render(this.scene,this.camera);
```

---
_Source: https://npm.io/package/three-post-processing · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
