@react-three/postprocessing 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://www.npmjs.com/package/@react-three/postprocessing)
|
|
5
5
|
[](https://discord.gg/ZZjjNvJ)
|
|
6
6
|
|
|
7
|
-
`react-postprocessing` is a [postprocessing](https://github.com/pmndrs/postprocessing) wrapper for [@react-three/fiber](https://github.com/pmndrs
|
|
7
|
+
`react-postprocessing` is a [postprocessing](https://github.com/pmndrs/postprocessing) wrapper for [@react-three/fiber](https://github.com/pmndrs/react-three-fiber). This is not (yet) meant for complex orchestration of effects, but can save you [hundreds of LOC](https://twitter.com/0xca0a/status/1289501594698960897) for a straight forward effects-chain.
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
npm install @react-three/postprocessing
|
|
@@ -128,7 +128,7 @@ Selection can be nested and group multiple object, higher up selection take prec
|
|
|
128
128
|
Bloom is selective by default, you control it not on the effect pass but on the materials by lifting their colors out of 0-1 range. a `luminanceThreshold` of 1 ensures that ootb nothing will glow, only the materials you pick. For this to work `toneMapped` has to be false on the materials, because it would otherwise clamp colors between 0 and 1 again.
|
|
129
129
|
|
|
130
130
|
```jsx
|
|
131
|
-
<Bloom luminanceThreshold={1}
|
|
131
|
+
<Bloom mipmapBlur luminanceThreshold={1} />
|
|
132
132
|
|
|
133
133
|
// ❌ will not glow, same as RGB [1,0,0]
|
|
134
134
|
<meshStandardMaterial color="red"/>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-three/postprocessing",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "postprocessing wrapper for React and @react-three/fiber",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"postprocessing",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"typegen": "tsc --emitDeclarationOnly || true"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"postprocessing": "^6.
|
|
42
|
+
"postprocessing": "^6.30.1",
|
|
43
43
|
"react-merge-refs": "^1.1.0",
|
|
44
44
|
"screen-space-reflections": "2.5.0",
|
|
45
45
|
"three-stdlib": "^2.8.11"
|