# @tomorrowevening/three-pass

> A layer that can be used for post-processing, GPGPU, etc

Latest version **1.0.2** (published 2018-05-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install @tomorrowevening/three-pass
pnpm add @tomorrowevening/three-pass
yarn add @tomorrowevening/three-pass
bun add @tomorrowevening/three-pass
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-05-31 |
| First published | 2018-05-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Colin Duffy |
| Maintainers | tomorrowevening |
| Keywords | ThreeJS |

## Links

- npm: https://www.npmjs.com/package/@tomorrowevening/three-pass
- Repository: https://github.com/tomorrowevening/ThreePass
- Homepage: https://github.com/tomorrowevening/ThreePass#readme
- Issues: https://github.com/tomorrowevening/ThreePass/issues
- npm.io page: https://npm.io/package/@tomorrowevening/three-pass

## Recent versions

- 1.0.2 (latest) — 2018-05-31

## README

# ThreePass
A layer that can be used for post-processing, GPGPU, etc.

## Install
`npm i three_pass`

## Build
`npm run build`

Here's some examples of use, using [FBO](https://github.com/tomorrowevening/Apollo-Utils/blob/master/src/ThreeUtil.js#L79) and [DoubleFBO](https://github.com/tomorrowevening/Apollo-Utils/blob/master/src/ThreeUtil.js#L104), but not required.

##### Basic Display Pass
```
draw(config, textures) {
  this.material.uniforms.time.value = config.time;
  this.material.uniforms.resolution.value = config.resolution;
  this.material.uniforms.texture.value = textures.buffer.texture;
  renderer.render(this.scene, this.camera);
}
```

##### Interaction Pass
```
draw(config, textures) {
  this.material.uniforms.time.value = config.time;
  this.material.uniforms.resolution.value = config.resolution;
  this.material.uniforms.mouse.value = config.mouse;
  this.material.uniforms.velocity.value = config.velocity;
  this.material.uniforms.texture.value = textures.buffer.texture;
  textures.buffer.swap();
  renderer.render(this.scene, this.camera, textures.buffer.target, false);
}
```

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