@react-three/postprocessing 2.8.3 → 2.9.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/dist/EffectComposer.d.ts +3 -3
- package/dist/Selection.d.ts +3 -3
- package/dist/effects/BrightnessContrast.d.ts +8 -1
- package/dist/effects/ChromaticAberration.d.ts +5 -3
- package/dist/effects/ColorAverage.d.ts +1 -1
- package/dist/effects/ColorDepth.d.ts +7 -1
- package/dist/effects/Depth.d.ts +7 -1
- package/dist/effects/DepthOfField.d.ts +16 -11
- package/dist/effects/DotScreen.d.ts +8 -1
- package/dist/effects/Glitch.d.ts +15 -15
- package/dist/effects/GodRays.d.ts +14 -11
- package/dist/effects/Grid.d.ts +5 -5
- package/dist/effects/HueSaturation.d.ts +8 -1
- package/dist/effects/LUT.d.ts +7 -7
- package/dist/effects/Outline.d.ts +22 -17
- package/dist/effects/Pixelation.d.ts +3 -3
- package/dist/effects/SMAA.d.ts +9 -5
- package/dist/effects/SSAO.d.ts +29 -16
- package/dist/effects/SSR.d.ts +1 -1
- package/dist/effects/SelectiveBloom.d.ts +8 -3
- package/dist/effects/Sepia.d.ts +7 -1
- package/dist/effects/ShockWave.d.ts +4 -1
- package/dist/effects/Texture.d.ts +7 -6
- package/dist/effects/TiltShift2.d.ts +11 -9
- package/dist/effects/ToneMapping.d.ts +15 -1
- package/dist/effects/Vignette.d.ts +10 -1
- package/dist/index.cjs +479 -752
- package/dist/index.js +394 -616
- package/dist/util.d.ts +7 -6
- package/package.json +48 -56
package/dist/EffectComposer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextureDataType } from 'three';
|
|
1
|
+
import type { TextureDataType } from 'three';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { EffectComposer as EffectComposerImpl, NormalPass, DepthDownsamplingPass } from 'postprocessing';
|
|
4
4
|
export declare const EffectComposerContext: React.Context<{
|
|
@@ -7,9 +7,9 @@ export declare const EffectComposerContext: React.Context<{
|
|
|
7
7
|
downSamplingPass: DepthDownsamplingPass | null;
|
|
8
8
|
camera: THREE.Camera;
|
|
9
9
|
scene: THREE.Scene;
|
|
10
|
-
resolutionScale?: number;
|
|
10
|
+
resolutionScale?: number | undefined;
|
|
11
11
|
}>;
|
|
12
|
-
export
|
|
12
|
+
export type EffectComposerProps = {
|
|
13
13
|
enabled?: boolean;
|
|
14
14
|
children: JSX.Element | JSX.Element[];
|
|
15
15
|
depthBuffer?: boolean;
|
package/dist/Selection.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export
|
|
3
|
+
export type Api = {
|
|
4
4
|
selected: THREE.Object3D[];
|
|
5
5
|
select: React.Dispatch<React.SetStateAction<THREE.Object3D[]>>;
|
|
6
6
|
enabled: boolean;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type SelectApi = JSX.IntrinsicElements['group'] & {
|
|
9
9
|
enabled?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare const selectionContext: React.Context<Api>;
|
|
11
|
+
export declare const selectionContext: React.Context<Api | null>;
|
|
12
12
|
export declare function Selection({ children, enabled }: {
|
|
13
13
|
enabled?: boolean;
|
|
14
14
|
children: React.ReactNode;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BrightnessContrastEffect } from 'postprocessing';
|
|
3
|
-
export declare const BrightnessContrast: import("react").ForwardRefExoticComponent<
|
|
3
|
+
export declare const BrightnessContrast: import("react").ForwardRefExoticComponent<Omit<import("@react-three/fiber").ExtendedColors<import("@react-three/fiber").Overwrite<Partial<BrightnessContrastEffect>, import("@react-three/fiber").NodeProps<BrightnessContrastEffect, typeof BrightnessContrastEffect>>> & {
|
|
4
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
5
|
+
brightness?: number | undefined;
|
|
6
|
+
contrast?: number | undefined;
|
|
7
|
+
} & {
|
|
8
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
9
|
+
opacity?: number | undefined;
|
|
10
|
+
}, "ref"> & import("react").RefAttributes<typeof BrightnessContrastEffect>>;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChromaticAberrationEffect } from 'postprocessing';
|
|
3
3
|
import { ReactThreeFiber } from '@react-three/fiber';
|
|
4
|
-
export
|
|
4
|
+
export type ChromaticAberrationProps = ConstructorParameters<typeof ChromaticAberrationEffect>[0] & Partial<{
|
|
5
5
|
offset: ReactThreeFiber.Vector2;
|
|
6
6
|
}>;
|
|
7
7
|
export declare const ChromaticAberration: React.ForwardRefExoticComponent<{
|
|
8
|
-
blendFunction?: import("postprocessing").BlendFunction;
|
|
9
|
-
offset?: import("three").Vector2;
|
|
8
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
9
|
+
offset?: import("three").Vector2 | undefined;
|
|
10
|
+
radialModulation: boolean;
|
|
11
|
+
modulationOffset: number;
|
|
10
12
|
} & Partial<{
|
|
11
13
|
offset: ReactThreeFiber.Vector2;
|
|
12
14
|
}> & React.RefAttributes<ChromaticAberrationEffect>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ColorAverageEffect, BlendFunction } from 'postprocessing';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export
|
|
3
|
+
export type ColorAverageProps = Partial<{
|
|
4
4
|
blendFunction: BlendFunction;
|
|
5
5
|
}>;
|
|
6
6
|
export declare const ColorAverage: React.ForwardRefExoticComponent<Partial<{
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ColorDepthEffect } from 'postprocessing';
|
|
3
|
-
export declare const ColorDepth: import("react").ForwardRefExoticComponent<
|
|
3
|
+
export declare const ColorDepth: import("react").ForwardRefExoticComponent<Omit<import("@react-three/fiber").ExtendedColors<import("@react-three/fiber").Overwrite<Partial<ColorDepthEffect>, import("@react-three/fiber").NodeProps<ColorDepthEffect, typeof ColorDepthEffect>>> & {
|
|
4
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
5
|
+
bits?: number | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
8
|
+
opacity?: number | undefined;
|
|
9
|
+
}, "ref"> & import("react").RefAttributes<typeof ColorDepthEffect>>;
|
package/dist/effects/Depth.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DepthEffect } from 'postprocessing';
|
|
3
|
-
export declare const Depth: import("react").ForwardRefExoticComponent<
|
|
3
|
+
export declare const Depth: import("react").ForwardRefExoticComponent<Omit<import("@react-three/fiber").ExtendedColors<import("@react-three/fiber").Overwrite<Partial<DepthEffect>, import("@react-three/fiber").NodeProps<DepthEffect, typeof DepthEffect>>> & {
|
|
4
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
5
|
+
inverted?: boolean | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
8
|
+
opacity?: number | undefined;
|
|
9
|
+
}, "ref"> & import("react").RefAttributes<typeof DepthEffect>>;
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { DepthOfFieldEffect } from 'postprocessing';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
import { ReactThreeFiber } from '@react-three/fiber';
|
|
4
|
-
import { Texture, Vector3 } from 'three';
|
|
5
|
-
export declare const DepthOfField:
|
|
6
|
-
blendFunction?: import("postprocessing").BlendFunction;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
import { type Texture, Vector3 } from 'three';
|
|
5
|
+
export declare const DepthOfField: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
7
|
+
worldFocusDistance?: number | undefined;
|
|
8
|
+
worldFocusRange?: number | undefined;
|
|
9
|
+
focusDistance?: number | undefined;
|
|
10
|
+
focalLength?: number | undefined;
|
|
11
|
+
focusRange?: number | undefined;
|
|
12
|
+
bokehScale?: number | undefined;
|
|
13
|
+
resolutionScale?: number | undefined;
|
|
14
|
+
resolutionX?: number | undefined;
|
|
15
|
+
resolutionY?: number | undefined;
|
|
16
|
+
width?: number | undefined;
|
|
17
|
+
height?: number | undefined;
|
|
13
18
|
} & Partial<{
|
|
14
19
|
target: ReactThreeFiber.Vector3;
|
|
15
20
|
depthTexture: {
|
|
@@ -17,4 +22,4 @@ export declare const DepthOfField: React.ForwardRefExoticComponent<{
|
|
|
17
22
|
packing: number;
|
|
18
23
|
};
|
|
19
24
|
blur: number;
|
|
20
|
-
}> &
|
|
25
|
+
}> & import("react").RefAttributes<DepthOfFieldEffect>>;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DotScreenEffect } from 'postprocessing';
|
|
3
|
-
export declare const DotScreen: import("react").ForwardRefExoticComponent<
|
|
3
|
+
export declare const DotScreen: import("react").ForwardRefExoticComponent<Omit<import("@react-three/fiber").ExtendedColors<import("@react-three/fiber").Overwrite<Partial<DotScreenEffect>, import("@react-three/fiber").NodeProps<DotScreenEffect, typeof DotScreenEffect>>> & {
|
|
4
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
5
|
+
angle?: number | undefined;
|
|
6
|
+
scale?: number | undefined;
|
|
7
|
+
} & {
|
|
8
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
9
|
+
opacity?: number | undefined;
|
|
10
|
+
}, "ref"> & import("react").RefAttributes<typeof DotScreenEffect>>;
|
package/dist/effects/Glitch.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { GlitchEffect, GlitchMode } from 'postprocessing';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
import { ReactThreeFiber } from '@react-three/fiber';
|
|
4
|
-
export
|
|
5
|
-
mode:
|
|
4
|
+
export type GlitchProps = ConstructorParameters<typeof GlitchEffect>[0] & Partial<{
|
|
5
|
+
mode: GlitchMode;
|
|
6
6
|
active: boolean;
|
|
7
7
|
delay: ReactThreeFiber.Vector2;
|
|
8
8
|
duration: ReactThreeFiber.Vector2;
|
|
9
9
|
chromaticAberrationOffset: ReactThreeFiber.Vector2;
|
|
10
10
|
strength: ReactThreeFiber.Vector2;
|
|
11
11
|
}>;
|
|
12
|
-
export declare const Glitch:
|
|
13
|
-
blendFunction?: import("postprocessing").BlendFunction;
|
|
14
|
-
chromaticAberrationOffset?: import("three").Vector2;
|
|
15
|
-
delay?: import("three").Vector2;
|
|
16
|
-
duration?: import("three").Vector2;
|
|
17
|
-
strength?: import("three").Vector2;
|
|
18
|
-
perturbationMap?: import("three").Texture;
|
|
19
|
-
dtSize?: number;
|
|
20
|
-
columns?: number;
|
|
21
|
-
ratio?: number;
|
|
12
|
+
export declare const Glitch: import("react").ForwardRefExoticComponent<{
|
|
13
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
14
|
+
chromaticAberrationOffset?: import("three").Vector2 | undefined;
|
|
15
|
+
delay?: import("three").Vector2 | undefined;
|
|
16
|
+
duration?: import("three").Vector2 | undefined;
|
|
17
|
+
strength?: import("three").Vector2 | undefined;
|
|
18
|
+
perturbationMap?: import("three").Texture | undefined;
|
|
19
|
+
dtSize?: number | undefined;
|
|
20
|
+
columns?: number | undefined;
|
|
21
|
+
ratio?: number | undefined;
|
|
22
22
|
} & Partial<{
|
|
23
|
-
mode:
|
|
23
|
+
mode: GlitchMode;
|
|
24
24
|
active: boolean;
|
|
25
25
|
delay: ReactThreeFiber.Vector2;
|
|
26
26
|
duration: ReactThreeFiber.Vector2;
|
|
27
27
|
chromaticAberrationOffset: ReactThreeFiber.Vector2;
|
|
28
28
|
strength: ReactThreeFiber.Vector2;
|
|
29
|
-
}> &
|
|
29
|
+
}> & import("react").RefAttributes<GlitchEffect>>;
|
|
@@ -2,17 +2,20 @@ import { GodRaysEffect } from 'postprocessing';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Mesh, Points } from 'three';
|
|
4
4
|
export declare const GodRays: React.ForwardRefExoticComponent<{
|
|
5
|
-
blendFunction?: import("postprocessing").BlendFunction;
|
|
6
|
-
samples?: number;
|
|
7
|
-
density?: number;
|
|
8
|
-
decay?: number;
|
|
9
|
-
weight?: number;
|
|
10
|
-
exposure?: number;
|
|
11
|
-
clampMax?: number;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
6
|
+
samples?: number | undefined;
|
|
7
|
+
density?: number | undefined;
|
|
8
|
+
decay?: number | undefined;
|
|
9
|
+
weight?: number | undefined;
|
|
10
|
+
exposure?: number | undefined;
|
|
11
|
+
clampMax?: number | undefined;
|
|
12
|
+
resolutionScale?: number | undefined;
|
|
13
|
+
resolutionX?: number | undefined;
|
|
14
|
+
resolutionY?: number | undefined;
|
|
15
|
+
width?: number | undefined;
|
|
16
|
+
height?: number | undefined;
|
|
17
|
+
kernelSize?: import("postprocessing").KernelSize | undefined;
|
|
18
|
+
blur?: boolean | undefined;
|
|
16
19
|
} & {
|
|
17
20
|
sun: Mesh | Points;
|
|
18
21
|
} & React.RefAttributes<GodRaysEffect>>;
|
package/dist/effects/Grid.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { GridEffect } from 'postprocessing';
|
|
3
|
-
export declare const Grid: React.ForwardRefExoticComponent<
|
|
4
|
-
blendFunction
|
|
5
|
-
scale
|
|
6
|
-
lineWidth
|
|
7
|
-
}
|
|
3
|
+
export declare const Grid: React.ForwardRefExoticComponent<{
|
|
4
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
5
|
+
scale?: number | undefined;
|
|
6
|
+
lineWidth?: number | undefined;
|
|
7
|
+
} & Partial<{
|
|
8
8
|
size: {
|
|
9
9
|
width: number;
|
|
10
10
|
height: number;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HueSaturationEffect } from 'postprocessing';
|
|
3
|
-
export declare const HueSaturation: import("react").ForwardRefExoticComponent<
|
|
3
|
+
export declare const HueSaturation: import("react").ForwardRefExoticComponent<Omit<import("@react-three/fiber").ExtendedColors<import("@react-three/fiber").Overwrite<Partial<HueSaturationEffect>, import("@react-three/fiber").NodeProps<HueSaturationEffect, typeof HueSaturationEffect>>> & {
|
|
4
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
5
|
+
hue?: number | undefined;
|
|
6
|
+
saturation?: number | undefined;
|
|
7
|
+
} & {
|
|
8
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
9
|
+
opacity?: number | undefined;
|
|
10
|
+
}, "ref"> & import("react").RefAttributes<typeof HueSaturationEffect>>;
|
package/dist/effects/LUT.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LUT3DEffect, BlendFunction } from 'postprocessing';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Texture } from 'three';
|
|
4
|
-
export
|
|
5
|
-
blendFunction?: import("postprocessing").BlendFunction;
|
|
6
|
-
tetrahedralInterpolation?: boolean;
|
|
7
|
-
} & {
|
|
3
|
+
import type { Texture } from 'three';
|
|
4
|
+
export type LUTProps = {
|
|
8
5
|
lut: Texture;
|
|
9
|
-
|
|
6
|
+
blendFunction?: BlendFunction;
|
|
7
|
+
tetrahedralInterpolation?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const LUT: React.ForwardRefExoticComponent<LUTProps & React.RefAttributes<LUT3DEffect>>;
|
|
@@ -1,25 +1,30 @@
|
|
|
1
1
|
import { OutlineEffect } from 'postprocessing';
|
|
2
|
-
import
|
|
2
|
+
import { MutableRefObject } from 'react';
|
|
3
3
|
import { Object3D } from 'three';
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
type ObjectRef = MutableRefObject<Object3D>;
|
|
5
|
+
export type OutlineProps = ConstructorParameters<typeof OutlineEffect>[2] & Partial<{
|
|
6
6
|
selection: Object3D | Object3D[] | ObjectRef | ObjectRef[];
|
|
7
7
|
selectionLayer: number;
|
|
8
8
|
}>;
|
|
9
|
-
export declare const Outline:
|
|
10
|
-
blendFunction
|
|
11
|
-
patternTexture
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
export declare const Outline: import("react").ForwardRefExoticComponent<{
|
|
10
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
11
|
+
patternTexture?: number | undefined;
|
|
12
|
+
patternScale?: number | undefined;
|
|
13
|
+
edgeStrength?: number | undefined;
|
|
14
|
+
pulseSpeed?: number | undefined;
|
|
15
|
+
visibleEdgeColor?: number | undefined;
|
|
16
|
+
hiddenEdgeColor?: number | undefined;
|
|
17
|
+
multisampling?: number | undefined;
|
|
18
|
+
resolutionScale?: number | undefined;
|
|
19
|
+
resolutionX?: number | undefined;
|
|
20
|
+
resolutionY?: number | undefined;
|
|
21
|
+
width?: number | undefined;
|
|
22
|
+
height?: number | undefined;
|
|
23
|
+
kernelSize?: import("postprocessing").KernelSize | undefined;
|
|
24
|
+
blur?: boolean | undefined;
|
|
25
|
+
xRay?: boolean | undefined;
|
|
26
|
+
} & Partial<{
|
|
22
27
|
selection: Object3D | Object3D[] | ObjectRef | ObjectRef[];
|
|
23
28
|
selectionLayer: number;
|
|
24
|
-
}> &
|
|
29
|
+
}> & import("react").RefAttributes<OutlineEffect>>;
|
|
25
30
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { PixelationEffect } from 'postprocessing';
|
|
3
|
-
export
|
|
3
|
+
export type PixelationProps = {
|
|
4
4
|
granularity?: number;
|
|
5
5
|
};
|
|
6
|
-
export declare const Pixelation:
|
|
6
|
+
export declare const Pixelation: import("react").ForwardRefExoticComponent<PixelationProps & import("react").RefAttributes<PixelationEffect>>;
|
package/dist/effects/SMAA.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { SMAAEffect } from 'postprocessing';
|
|
3
|
-
export declare const SMAA:
|
|
4
|
-
preset?:
|
|
5
|
-
edgeDetectionMode?:
|
|
6
|
-
|
|
3
|
+
export declare const SMAA: import("react").ForwardRefExoticComponent<Omit<import("@react-three/fiber").ExtendedColors<import("@react-three/fiber").Overwrite<Partial<SMAAEffect>, import("@react-three/fiber").NodeProps<SMAAEffect, typeof SMAAEffect>>> & {
|
|
4
|
+
preset?: import("postprocessing").SMAAPreset | undefined;
|
|
5
|
+
edgeDetectionMode?: import("postprocessing").EdgeDetectionMode | undefined;
|
|
6
|
+
predicationMode?: import("postprocessing").PredicationMode | undefined;
|
|
7
|
+
} & {
|
|
8
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
9
|
+
opacity?: number | undefined;
|
|
10
|
+
}, "ref"> & import("react").RefAttributes<typeof SMAAEffect>>;
|
package/dist/effects/SSAO.d.ts
CHANGED
|
@@ -1,17 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { SSAOEffect, BlendFunction } from 'postprocessing';
|
|
3
|
-
export declare const SSAO:
|
|
4
|
-
blendFunction?: BlendFunction;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
export declare const SSAO: import("react").ForwardRefExoticComponent<{
|
|
4
|
+
blendFunction?: BlendFunction | undefined;
|
|
5
|
+
distanceScaling?: boolean | undefined;
|
|
6
|
+
depthAwareUpsampling?: boolean | undefined;
|
|
7
|
+
normalDepthBuffer?: import("three").Texture | undefined;
|
|
8
|
+
samples?: number | undefined;
|
|
9
|
+
rings?: number | undefined;
|
|
10
|
+
worldDistanceThreshold: number;
|
|
11
|
+
worldDistanceFalloff: number;
|
|
12
|
+
worldProximityThreshold: number;
|
|
13
|
+
worldProximityFalloff: number;
|
|
14
|
+
distanceThreshold?: number | undefined;
|
|
15
|
+
distanceFalloff?: number | undefined;
|
|
16
|
+
rangeThreshold?: number | undefined;
|
|
17
|
+
rangeFalloff?: number | undefined;
|
|
18
|
+
minRadiusScale?: number | undefined;
|
|
19
|
+
luminanceInfluence?: number | undefined;
|
|
20
|
+
radius?: number | undefined;
|
|
21
|
+
intensity?: number | undefined;
|
|
22
|
+
bias?: number | undefined;
|
|
23
|
+
fade?: number | undefined;
|
|
24
|
+
color?: import("three").Color | undefined;
|
|
25
|
+
resolutionScale?: number | undefined;
|
|
26
|
+
resolutionX?: number | undefined;
|
|
27
|
+
resolutionY?: number | undefined;
|
|
28
|
+
width?: number | undefined;
|
|
29
|
+
height?: number | undefined;
|
|
30
|
+
} & import("react").RefAttributes<SSAOEffect>>;
|
package/dist/effects/SSR.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type SSRProps = {
|
|
3
3
|
/** whether you want to use Temporal Resolving to re-use reflections from the last frames; this will reduce noise tremendously but may result in "smearing" */
|
|
4
4
|
temporalResolve?: boolean;
|
|
5
5
|
/** a value between 0 and 1 to set how much the last frame's reflections should be blended in; higher values will result in less noisy reflections when moving the camera but a more smeary look */
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { SelectiveBloomEffect } from 'postprocessing';
|
|
2
|
+
import type { BloomEffectOptions } from 'postprocessing';
|
|
2
3
|
import React, { MutableRefObject } from 'react';
|
|
3
4
|
import { Object3D } from 'three';
|
|
4
|
-
|
|
5
|
-
export
|
|
5
|
+
type ObjectRef = MutableRefObject<Object3D>;
|
|
6
|
+
export type SelectiveBloomProps = BloomEffectOptions & Partial<{
|
|
6
7
|
lights: Object3D[] | ObjectRef[];
|
|
7
8
|
selection: Object3D | Object3D[] | ObjectRef | ObjectRef[];
|
|
8
9
|
selectionLayer: number;
|
|
9
10
|
}>;
|
|
10
|
-
export declare const SelectiveBloom: React.ForwardRefExoticComponent<
|
|
11
|
+
export declare const SelectiveBloom: React.ForwardRefExoticComponent<BloomEffectOptions & Partial<{
|
|
12
|
+
lights: Object3D[] | ObjectRef[];
|
|
13
|
+
selection: Object3D | Object3D[] | ObjectRef | ObjectRef[];
|
|
14
|
+
selectionLayer: number;
|
|
15
|
+
}> & React.RefAttributes<SelectiveBloomEffect>>;
|
|
11
16
|
export {};
|
package/dist/effects/Sepia.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SepiaEffect } from 'postprocessing';
|
|
3
|
-
export declare const Sepia: import("react").ForwardRefExoticComponent<
|
|
3
|
+
export declare const Sepia: import("react").ForwardRefExoticComponent<Omit<import("@react-three/fiber").ExtendedColors<import("@react-three/fiber").Overwrite<Partial<SepiaEffect>, import("@react-three/fiber").NodeProps<SepiaEffect, typeof SepiaEffect>>> & {
|
|
4
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
5
|
+
intensity?: number | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
8
|
+
opacity?: number | undefined;
|
|
9
|
+
}, "ref"> & import("react").RefAttributes<typeof SepiaEffect>>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ShockWaveEffect } from 'postprocessing';
|
|
3
|
-
export declare const ShockWave: import("react").ForwardRefExoticComponent<
|
|
3
|
+
export declare const ShockWave: import("react").ForwardRefExoticComponent<Omit<import("@react-three/fiber").ExtendedColors<import("@react-three/fiber").Overwrite<Partial<ShockWaveEffect>, import("@react-three/fiber").NodeProps<ShockWaveEffect, typeof ShockWaveEffect>>> & import("three").Camera & {
|
|
4
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
5
|
+
opacity?: number | undefined;
|
|
6
|
+
}, "ref"> & import("react").RefAttributes<typeof ShockWaveEffect>>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { TextureEffect } from 'postprocessing';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
3
|
+
export declare const Texture: import("react").ForwardRefExoticComponent<{
|
|
4
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
5
|
+
texture?: import("three").Texture | undefined;
|
|
6
|
+
aspectCorrection?: boolean | undefined;
|
|
7
|
+
} & {
|
|
7
8
|
textureSrc: string;
|
|
8
|
-
} &
|
|
9
|
+
} & import("react").RefAttributes<TextureEffect>>;
|
|
@@ -6,14 +6,16 @@ export declare class TiltShiftEffect extends Effect {
|
|
|
6
6
|
start, // [0,1] percentage x,y of screenspace
|
|
7
7
|
end, // [0,1] percentage x,y of screenspace
|
|
8
8
|
samples, // number of blur samples
|
|
9
|
-
direction }?: {
|
|
10
|
-
blendFunction?: BlendFunction;
|
|
11
|
-
blur?: number;
|
|
12
|
-
taper?: number;
|
|
13
|
-
start?: number[];
|
|
14
|
-
end?: number[];
|
|
15
|
-
samples?: number;
|
|
16
|
-
direction?: number[];
|
|
9
|
+
direction, }?: {
|
|
10
|
+
blendFunction?: BlendFunction | undefined;
|
|
11
|
+
blur?: number | undefined;
|
|
12
|
+
taper?: number | undefined;
|
|
13
|
+
start?: number[] | undefined;
|
|
14
|
+
end?: number[] | undefined;
|
|
15
|
+
samples?: number | undefined;
|
|
16
|
+
direction?: number[] | undefined;
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
export declare const TiltShift2: import("react").ForwardRefExoticComponent<
|
|
19
|
+
export declare const TiltShift2: import("react").ForwardRefExoticComponent<{
|
|
20
|
+
blendFunction: BlendFunction;
|
|
21
|
+
} & import("react").RefAttributes<typeof TiltShiftEffect>>;
|
|
@@ -1,3 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ToneMappingEffect } from 'postprocessing';
|
|
3
|
-
export declare const ToneMapping: import("react").ForwardRefExoticComponent<
|
|
3
|
+
export declare const ToneMapping: import("react").ForwardRefExoticComponent<Omit<import("@react-three/fiber").ExtendedColors<import("@react-three/fiber").Overwrite<Partial<ToneMappingEffect>, import("@react-three/fiber").NodeProps<ToneMappingEffect, typeof ToneMappingEffect>>> & {
|
|
4
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
5
|
+
adaptive?: boolean | undefined;
|
|
6
|
+
mode?: import("postprocessing").ToneMappingMode | undefined;
|
|
7
|
+
resolution?: number | undefined;
|
|
8
|
+
maxLuminance?: number | undefined;
|
|
9
|
+
whitePoint?: number | undefined;
|
|
10
|
+
middleGrey?: number | undefined;
|
|
11
|
+
minLuminance?: number | undefined;
|
|
12
|
+
averageLuminance?: number | undefined;
|
|
13
|
+
adaptationRate?: number | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
16
|
+
opacity?: number | undefined;
|
|
17
|
+
}, "ref"> & import("react").RefAttributes<typeof ToneMappingEffect>>;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { VignetteEffect } from 'postprocessing';
|
|
3
|
-
export declare const Vignette: import("react").ForwardRefExoticComponent<
|
|
3
|
+
export declare const Vignette: import("react").ForwardRefExoticComponent<Omit<import("@react-three/fiber").ExtendedColors<import("@react-three/fiber").Overwrite<Partial<VignetteEffect>, import("@react-three/fiber").NodeProps<VignetteEffect, typeof VignetteEffect>>> & {
|
|
4
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
5
|
+
technique?: import("postprocessing").VignetteTechnique | undefined;
|
|
6
|
+
eskil?: boolean | undefined;
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
darkness?: number | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
blendFunction?: import("postprocessing").BlendFunction | undefined;
|
|
11
|
+
opacity?: number | undefined;
|
|
12
|
+
}, "ref"> & import("react").RefAttributes<typeof VignetteEffect>>;
|