@tresjs/post-processing 3.1.2 → 3.2.0
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @tresjs/post-processing
|
|
3
|
-
* version: v3.
|
|
3
|
+
* version: v3.2.0
|
|
4
4
|
* (c) 2025
|
|
5
5
|
* description: Post-processing library for TresJS
|
|
6
6
|
* author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
|
|
@@ -10,7 +10,7 @@ import { Reactive, ShallowRef } from "vue";
|
|
|
10
10
|
import * as postprocessing0 from "postprocessing";
|
|
11
11
|
import { ASCIIEffect, ASCIITexture, BlendFunction, BloomEffect, BrightnessContrastEffect, ChromaticAberrationEffect, ColorAverageEffect, ColorDepthEffect, DepthCopyMode, DepthOfFieldEffect, DepthPickingPass, DotScreenEffect, EdgeDetectionMode, Effect, EffectComposer, EffectPass, FXAAEffect, GlitchEffect, GlitchMode, GodRaysEffect, GridEffect, HueSaturationEffect, KernelSize, LensDistortionEffect, NoiseEffect, OutlineEffect, PixelationEffect, PredicationMode, SMAAEffect, SMAAPreset, ScanlineEffect, SepiaEffect, ShockWaveEffect, TextureEffect, TiltShiftEffect, ToneMappingEffect, ToneMappingMode, VignetteEffect, VignetteTechnique } from "postprocessing";
|
|
12
12
|
import { TresColor } from "@tresjs/core";
|
|
13
|
-
import { Color, DepthPackingStrategies, Mesh, Object3D, Points, Texture, Vector2, Vector3 } from "three";
|
|
13
|
+
import { Color, DepthPackingStrategies, Mesh, Object3D, Points, Texture, Vector2, Vector3, WebGLRenderTarget } from "three";
|
|
14
14
|
import { EffectComposer as EffectComposer$1 } from "three/examples/jsm/postprocessing/EffectComposer.js";
|
|
15
15
|
import { GlitchPass } from "three/examples/jsm/postprocessing/GlitchPass.js";
|
|
16
16
|
import { HalftonePass } from "three/examples/jsm/postprocessing/HalftonePass.js";
|
|
@@ -1126,6 +1126,7 @@ declare const useEffect: <T extends Pass, D extends Record<PropertyKey, any>>(ne
|
|
|
1126
1126
|
//#region src/core/three/EffectComposer.vue.d.ts
|
|
1127
1127
|
interface EffectComposerProps {
|
|
1128
1128
|
enabled?: boolean;
|
|
1129
|
+
renderTarget?: WebGLRenderTarget;
|
|
1129
1130
|
withoutRenderPass?: boolean;
|
|
1130
1131
|
}
|
|
1131
1132
|
declare const _default$10: typeof __VLS_export$6;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @tresjs/post-processing
|
|
3
|
-
* version: v3.
|
|
3
|
+
* version: v3.2.0
|
|
4
4
|
* (c) 2025
|
|
5
5
|
* description: Post-processing library for TresJS
|
|
6
6
|
* author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
|
|
@@ -2386,6 +2386,10 @@ var EffectComposer_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
2386
2386
|
required: false,
|
|
2387
2387
|
default: true
|
|
2388
2388
|
},
|
|
2389
|
+
renderTarget: {
|
|
2390
|
+
type: Object,
|
|
2391
|
+
required: false
|
|
2392
|
+
},
|
|
2389
2393
|
withoutRenderPass: {
|
|
2390
2394
|
type: Boolean,
|
|
2391
2395
|
required: false
|
|
@@ -2399,7 +2403,7 @@ var EffectComposer_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
2399
2403
|
const { renderer, sizes, scene, camera } = useTresContext();
|
|
2400
2404
|
const initEffectComposer = () => {
|
|
2401
2405
|
effectComposer.value?.dispose();
|
|
2402
|
-
effectComposer.value = new EffectComposer$1(renderer.instance);
|
|
2406
|
+
effectComposer.value = new EffectComposer$1(renderer.instance, props.renderTarget);
|
|
2403
2407
|
};
|
|
2404
2408
|
watchEffect(initEffectComposer);
|
|
2405
2409
|
watchEffect(() => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tresjs/post-processing",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.2.0",
|
|
5
5
|
"description": "Post-processing library for TresJS",
|
|
6
6
|
"author": "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
],
|
|
22
22
|
"maintainers": [
|
|
23
23
|
"Alvaro Saburido (https://github.com/alvarosabu/)",
|
|
24
|
-
"Tino Koch (https://github.com/Tinoooo)"
|
|
24
|
+
"Tino Koch (https://github.com/Tinoooo)",
|
|
25
|
+
"Damien Montastier (https://github.com/damienmontastier)"
|
|
25
26
|
],
|
|
26
27
|
"exports": {
|
|
27
28
|
".": "./dist/tres-post-processing.js",
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"access": "public"
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
|
-
"@tresjs/core": "5.2.
|
|
42
|
+
"@tresjs/core": "5.2.1",
|
|
42
43
|
"three": ">=0.169",
|
|
43
44
|
"vue": ">=3.4"
|
|
44
45
|
},
|
|
@@ -62,9 +63,9 @@
|
|
|
62
63
|
"vite-plugin-dts": "4.5.4",
|
|
63
64
|
"vue": "^3.5.22",
|
|
64
65
|
"vue-tsc": "^3.1.1",
|
|
65
|
-
"@tresjs/core": "5.2.0",
|
|
66
66
|
"@tresjs/eslint-config": "1.5.1",
|
|
67
|
-
"@tresjs/leches": "1.1.2"
|
|
67
|
+
"@tresjs/leches": "1.1.2",
|
|
68
|
+
"@tresjs/core": "5.2.1"
|
|
68
69
|
},
|
|
69
70
|
"nx": {
|
|
70
71
|
"implicitDependencies": [
|
|
@@ -72,8 +73,6 @@
|
|
|
72
73
|
]
|
|
73
74
|
},
|
|
74
75
|
"scripts": {
|
|
75
|
-
"dev": "cd playground && npm run dev",
|
|
76
|
-
"playground": "cd playground && npm run dev",
|
|
77
76
|
"build": "tsdown",
|
|
78
77
|
"preview": "vite preview",
|
|
79
78
|
"lint": "eslint .",
|