@types/three 0.169.0 → 0.171.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.
- three/README.md +1 -1
- three/build/three.core.d.ts +1 -0
- three/build/three.core.min.d.ts +1 -0
- three/build/three.tsl.d.ts +1 -0
- three/build/three.tsl.min.d.ts +1 -0
- three/examples/jsm/Addons.d.ts +3 -3
- three/examples/jsm/animation/MMDAnimationHelper.d.ts +4 -0
- three/examples/jsm/animation/MMDPhysics.d.ts +4 -0
- three/examples/jsm/controls/ArcballControls.d.ts +6 -1
- three/examples/jsm/controls/TransformControls.d.ts +45 -1
- three/examples/jsm/csm/CSMFrustum.d.ts +8 -2
- three/examples/jsm/csm/CSMHelper.d.ts +2 -1
- three/examples/jsm/csm/CSMShadowNode.d.ts +45 -0
- three/examples/jsm/curves/NURBSCurve.d.ts +12 -1
- three/examples/jsm/exporters/GLTFExporter.d.ts +43 -10
- three/examples/jsm/exporters/MMDExporter.d.ts +4 -0
- three/examples/jsm/exporters/USDZExporter.d.ts +4 -0
- three/examples/jsm/geometries/DecalGeometry.d.ts +10 -4
- three/examples/jsm/geometries/TeapotGeometry.d.ts +2 -2
- three/examples/jsm/helpers/TextureHelperGPU.d.ts +10 -0
- three/examples/jsm/lighting/TiledLighting.d.ts +10 -0
- three/examples/jsm/lines/Wireframe.d.ts +5 -2
- three/examples/jsm/lines/WireframeGeometry2.d.ts +1 -1
- three/examples/jsm/lines/webgpu/Wireframe.d.ts +13 -0
- three/examples/jsm/loaders/EXRLoader.d.ts +2 -2
- three/examples/jsm/loaders/GLTFLoader.d.ts +1 -2
- three/examples/jsm/loaders/KTX2Loader.d.ts +1 -0
- three/examples/jsm/loaders/LDrawLoader.d.ts +10 -0
- three/examples/jsm/loaders/MMDLoader.d.ts +4 -0
- three/examples/jsm/materials/LDrawConditionalLineMaterial.d.ts +9 -0
- three/examples/jsm/materials/LDrawConditionalLineNodeMaterial.d.ts +9 -0
- three/examples/jsm/materials/MeshGouraudMaterial.d.ts +0 -1
- three/examples/jsm/math/ColorSpaces.d.ts +11 -0
- three/examples/jsm/misc/ProgressiveLightMap.d.ts +8 -10
- three/examples/jsm/misc/ProgressiveLightMapGPU.d.ts +27 -0
- three/examples/jsm/objects/SkyMesh.d.ts +2 -2
- three/examples/jsm/objects/Water2Mesh.d.ts +13 -2
- three/examples/jsm/objects/WaterMesh.d.ts +11 -2
- three/examples/jsm/renderers/SVGRenderer.d.ts +2 -2
- three/{src/nodes → examples/jsm/tsl}/display/AfterImageNode.d.ts +2 -5
- three/{src/nodes → examples/jsm/tsl}/display/AnaglyphPassNode.d.ts +2 -3
- three/{src/nodes → examples/jsm/tsl}/display/AnamorphicNode.d.ts +2 -4
- three/examples/jsm/tsl/display/BleachBypass.d.ts +4 -0
- three/{src/nodes → examples/jsm/tsl}/display/BloomNode.d.ts +2 -5
- three/{src/nodes → examples/jsm/tsl}/display/DenoiseNode.d.ts +3 -8
- three/{src/nodes → examples/jsm/tsl}/display/DepthOfFieldNode.d.ts +2 -5
- three/{src/nodes → examples/jsm/tsl}/display/DotScreenNode.d.ts +2 -5
- three/{src/nodes → examples/jsm/tsl}/display/FXAANode.d.ts +2 -3
- three/{src/nodes → examples/jsm/tsl}/display/FilmNode.d.ts +2 -3
- three/{src/nodes → examples/jsm/tsl}/display/GTAONode.d.ts +5 -14
- three/{src/nodes → examples/jsm/tsl}/display/GaussianBlurNode.d.ts +13 -5
- three/examples/jsm/tsl/display/LensflareNode.d.ts +35 -0
- three/{src/nodes → examples/jsm/tsl}/display/Lut3DNode.d.ts +2 -6
- three/{src/nodes → examples/jsm/tsl}/display/MotionBlur.d.ts +2 -2
- three/examples/jsm/tsl/display/OutlineNode.d.ts +32 -0
- three/{src/nodes → examples/jsm/tsl}/display/ParallaxBarrierPassNode.d.ts +2 -3
- three/{src/nodes → examples/jsm/tsl}/display/PixelationPassNode.d.ts +2 -5
- three/{src/nodes → examples/jsm/tsl}/display/RGBShiftNode.d.ts +2 -4
- three/examples/jsm/tsl/display/SMAANode.d.ts +18 -0
- three/{src/nodes → examples/jsm/tsl}/display/SSAAPassNode.d.ts +2 -7
- three/examples/jsm/tsl/display/SSRNode.d.ts +38 -0
- three/examples/jsm/tsl/display/Sepia.d.ts +4 -0
- three/{src/nodes → examples/jsm/tsl}/display/SobelOperatorNode.d.ts +2 -3
- three/{src/nodes → examples/jsm/tsl}/display/StereoCompositePassNode.d.ts +1 -5
- three/{src/nodes → examples/jsm/tsl}/display/StereoPassNode.d.ts +2 -5
- three/examples/jsm/tsl/display/TRAAPassNode.d.ts +15 -0
- three/{src/nodes → examples/jsm/tsl}/display/TransitionNode.d.ts +2 -5
- three/examples/jsm/tsl/display/hashBlur.d.ts +8 -0
- three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +23 -0
- three/package.json +5 -4
- three/src/Three.Core.d.ts +158 -0
- three/src/Three.TSL.d.ts +528 -0
- three/src/Three.WebGPU.Nodes.d.ts +15 -192
- three/src/Three.WebGPU.d.ts +14 -192
- three/src/Three.d.ts +3 -164
- three/src/animation/AnimationClip.d.ts +3 -1
- three/src/constants.d.ts +1 -9
- three/src/core/BufferGeometry.d.ts +13 -2
- three/src/core/Clock.d.ts +4 -6
- three/src/core/InterleavedBuffer.d.ts +12 -0
- three/src/core/RenderTarget.d.ts +1 -2
- three/src/loaders/FileLoader.d.ts +3 -3
- three/src/materials/LineBasicMaterial.d.ts +0 -5
- three/src/materials/LineDashedMaterial.d.ts +0 -5
- three/src/materials/Material.d.ts +6 -6
- three/src/materials/MeshBasicMaterial.d.ts +0 -5
- three/src/materials/MeshDepthMaterial.d.ts +0 -5
- three/src/materials/MeshDistanceMaterial.d.ts +0 -5
- three/src/materials/MeshLambertMaterial.d.ts +0 -5
- three/src/materials/MeshMatcapMaterial.d.ts +0 -5
- three/src/materials/MeshNormalMaterial.d.ts +0 -5
- three/src/materials/MeshPhongMaterial.d.ts +0 -5
- three/src/materials/MeshPhysicalMaterial.d.ts +0 -5
- three/src/materials/MeshStandardMaterial.d.ts +0 -5
- three/src/materials/MeshToonMaterial.d.ts +0 -5
- three/src/materials/PointsMaterial.d.ts +0 -5
- three/src/materials/RawShaderMaterial.d.ts +0 -2
- three/src/materials/ShaderMaterial.d.ts +0 -5
- three/src/materials/ShadowMaterial.d.ts +0 -5
- three/src/materials/SpriteMaterial.d.ts +0 -5
- three/src/materials/nodes/LineDashedNodeMaterial.d.ts +3 -0
- three/src/materials/nodes/MeshNormalNodeMaterial.d.ts +2 -2
- three/src/materials/nodes/NodeMaterial.d.ts +6 -1
- three/src/materials/nodes/NodeMaterials.d.ts +19 -16
- three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +15 -0
- three/src/math/Color.d.ts +39 -22
- three/src/math/ColorManagement.d.ts +24 -24
- three/src/math/Vector4.d.ts +2 -0
- three/src/nodes/Nodes.d.ts +2 -22
- three/src/nodes/TSL.d.ts +14 -26
- three/src/nodes/accessors/Arrays.d.ts +6 -0
- three/src/nodes/accessors/BuiltinNode.d.ts +14 -0
- three/src/nodes/accessors/Camera.d.ts +0 -1
- three/src/nodes/accessors/ClippingNode.d.ts +6 -0
- three/src/nodes/accessors/InstanceNode.d.ts +15 -3
- three/src/nodes/accessors/InstancedMeshNode.d.ts +11 -0
- three/src/nodes/accessors/Lights.d.ts +15 -0
- three/src/nodes/accessors/SceneNode.d.ts +2 -0
- three/src/nodes/accessors/StorageBufferNode.d.ts +20 -11
- three/src/nodes/accessors/StorageTextureNode.d.ts +5 -3
- three/src/nodes/accessors/UniformArrayNode.d.ts +2 -2
- three/src/nodes/accessors/VelocityNode.d.ts +4 -0
- three/src/nodes/code/ScriptableNode.d.ts +1 -1
- three/src/nodes/core/IndexNode.d.ts +2 -0
- three/src/nodes/core/NodeUtils.d.ts +7 -0
- three/src/nodes/core/StackNode.d.ts +10 -5
- three/src/nodes/core/VarNode.d.ts +12 -1
- three/src/nodes/core/constants.d.ts +6 -0
- three/src/nodes/display/BlendModes.d.ts +32 -0
- three/src/nodes/display/ColorAdjustment.d.ts +29 -0
- three/src/nodes/display/ColorSpaceFunctions.d.ts +2 -2
- three/src/nodes/display/ColorSpaceNode.d.ts +14 -8
- three/src/nodes/display/RenderOutputNode.d.ts +4 -4
- three/src/nodes/display/ScreenNode.d.ts +5 -0
- three/src/nodes/display/ViewportDepthNode.d.ts +4 -0
- three/src/nodes/functions/material/getAlphaHashThreshold.d.ts +6 -0
- three/src/nodes/functions/material/getParallaxCorrectNormal.d.ts +10 -0
- three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +88 -0
- three/src/nodes/gpgpu/BarrierNode.d.ts +12 -0
- three/src/nodes/gpgpu/ComputeBuiltinNode.d.ts +13 -0
- three/src/nodes/gpgpu/ComputeNode.d.ts +5 -0
- three/src/nodes/gpgpu/WorkgroupInfoNode.d.ts +17 -0
- three/src/nodes/lighting/AnalyticLightNode.d.ts +11 -0
- three/src/nodes/lighting/LightsNode.d.ts +7 -2
- three/src/nodes/lighting/PointLightNode.d.ts +14 -1
- three/src/nodes/lighting/PointShadowNode.d.ts +30 -0
- three/src/nodes/lighting/ShadowNode.d.ts +35 -0
- three/src/nodes/math/OperatorNode.d.ts +3 -0
- three/src/nodes/tsl/TSLBase.d.ts +5 -0
- three/src/nodes/tsl/TSLCore.d.ts +3 -0
- three/src/nodes/utils/Discard.d.ts +1 -1
- three/src/nodes/utils/Oscillators.d.ts +7 -0
- three/src/nodes/utils/PostProcessingUtils.d.ts +45 -0
- three/src/nodes/utils/ReflectorNode.d.ts +17 -4
- three/src/nodes/utils/SplitNode.d.ts +1 -1
- three/src/nodes/utils/Timer.d.ts +21 -0
- three/src/objects/BatchedMesh.d.ts +51 -6
- three/src/objects/ClippingGroup.d.ts +41 -0
- three/src/renderers/WebGLRenderer.d.ts +24 -11
- three/src/renderers/common/Animation.d.ts +11 -4
- three/src/renderers/common/ClippingContext.d.ts +16 -14
- three/src/renderers/common/Constants.d.ts +2 -1
- three/src/renderers/common/Geometries.d.ts +1 -0
- three/src/renderers/common/IndirectStorageBufferAttribute.d.ts +10 -0
- three/src/renderers/common/Lighting.d.ts +15 -0
- three/src/renderers/common/PostProcessingUtils.d.ts +66 -0
- three/src/renderers/common/RenderList.d.ts +10 -2
- three/src/renderers/common/RenderLists.d.ts +3 -1
- three/src/renderers/common/RenderObject.d.ts +9 -4
- three/src/renderers/common/RenderObjects.d.ts +3 -0
- three/src/renderers/common/Renderer.d.ts +49 -10
- three/src/renderers/common/UniformsGroup.d.ts +1 -0
- three/src/renderers/common/extras/PMREMGenerator.d.ts +20 -2
- three/src/renderers/common/nodes/NodeLibrary.d.ts +2 -11
- three/src/renderers/common/nodes/NodeUniform.d.ts +7 -0
- three/src/renderers/webgl/WebGLPrograms.d.ts +3 -10
- three/src/renderers/webgl/WebGLState.d.ts +14 -11
- three/src/renderers/webgl/WebGLUtils.d.ts +2 -2
- three/src/textures/CompressedTexture.d.ts +1 -2
- three/src/textures/CubeTexture.d.ts +1 -2
- three/src/textures/Data3DTexture.d.ts +4 -2
- three/src/textures/DataArrayTexture.d.ts +1 -1
- three/src/textures/DataTexture.d.ts +7 -3
- three/src/textures/Texture.d.ts +3 -4
- three/examples/jsm/cameras/CinematicCamera.d.ts +0 -34
- three/src/nodes/display/BleachBypass.d.ts +0 -4
- three/src/nodes/display/BlendMode.d.ts +0 -10
- three/src/nodes/display/Sepia.d.ts +0 -4
- three/src/nodes/lighting/LightNode.d.ts +0 -18
- three/src/nodes/utils/OscNode.d.ts +0 -25
- three/src/nodes/utils/TimerNode.d.ts +0 -25
- three/src/textures/types.d.ts +0 -9
- /three/examples/jsm/utils/{TextureUtils.d.ts → WebGLTextureUtils.d.ts} +0 -0
- /three/examples/jsm/utils/{TextureUtilsGPU.d.ts → WebGPUTextureUtils.d.ts} +0 -0
|
@@ -24,29 +24,23 @@ export interface LightMapContainers {
|
|
|
24
24
|
object: Object3D;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
declare class ProgressiveLightMap {
|
|
28
28
|
renderer: WebGLRenderer;
|
|
29
29
|
res: number;
|
|
30
30
|
lightMapContainers: LightMapContainers[];
|
|
31
|
-
compiled: boolean;
|
|
32
31
|
scene: Scene;
|
|
33
|
-
tinyTarget: WebGLRenderTarget;
|
|
34
32
|
buffer1Active: boolean;
|
|
35
33
|
firstUpdate: boolean;
|
|
36
34
|
warned: boolean;
|
|
35
|
+
labelMesh: Mesh<PlaneGeometry, MeshBasicMaterial> | null;
|
|
36
|
+
blurringPlane: Mesh<PlaneGeometry, MeshBasicMaterial> | null;
|
|
37
37
|
|
|
38
38
|
progressiveLightMap1: WebGLRenderTarget;
|
|
39
39
|
progressiveLightMap2: WebGLRenderTarget;
|
|
40
40
|
|
|
41
41
|
uvMat: MeshPhongMaterial;
|
|
42
42
|
|
|
43
|
-
uv_boxes
|
|
44
|
-
|
|
45
|
-
blurringPlane: Mesh<PlaneGeometry, MeshBasicMaterial>;
|
|
46
|
-
|
|
47
|
-
labelMaterial: MeshBasicMaterial;
|
|
48
|
-
labelPlane: PlaneGeometry;
|
|
49
|
-
labelMesh: Mesh<PlaneGeometry, MeshBasicMaterial>;
|
|
43
|
+
uv_boxes?: UVBoxes[];
|
|
50
44
|
|
|
51
45
|
constructor(renderer: WebGLRenderer, res?: number);
|
|
52
46
|
|
|
@@ -57,4 +51,8 @@ export class ProgressiveLightMap {
|
|
|
57
51
|
showDebugLightmap(visible: boolean, position?: Vector3): void;
|
|
58
52
|
|
|
59
53
|
private _initializeBlurPlane(res: number, lightMap?: Texture | null): void;
|
|
54
|
+
|
|
55
|
+
dispose(): void;
|
|
60
56
|
}
|
|
57
|
+
|
|
58
|
+
export { ProgressiveLightMap };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Camera, Material, Object3D, Vector3, WebGPURenderer } from "three/webgpu";
|
|
2
|
+
|
|
3
|
+
export interface UVBoxes {
|
|
4
|
+
w: number;
|
|
5
|
+
h: number;
|
|
6
|
+
index: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface LightMapContainers {
|
|
10
|
+
basicMat: Material | Material[];
|
|
11
|
+
object: Object3D;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare class ProgressiveLightMap {
|
|
15
|
+
renderer: WebGPURenderer;
|
|
16
|
+
resolution: number;
|
|
17
|
+
|
|
18
|
+
constructor(renderer: WebGPURenderer, resolution?: number);
|
|
19
|
+
|
|
20
|
+
addObjectsToLightMap(objects: Object3D[]): void;
|
|
21
|
+
|
|
22
|
+
update(camera: Camera, blendWindow?: number, blurEdges?: boolean): void;
|
|
23
|
+
|
|
24
|
+
showDebugLightmap(visible: boolean, position?: Vector3 | null): void;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { ProgressiveLightMap };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ShaderNodeObject
|
|
2
|
-
import { BoxGeometry, Mesh, NodeMaterial, Vector3 } from "three/webgpu";
|
|
1
|
+
import { ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { BoxGeometry, Mesh, NodeMaterial, UniformNode, Vector3 } from "three/webgpu";
|
|
3
3
|
|
|
4
4
|
declare class SkyMesh extends Mesh<BoxGeometry, NodeMaterial> {
|
|
5
5
|
turbidity: ShaderNodeObject<UniformNode<number>>;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
BufferGeometry,
|
|
3
|
+
Color,
|
|
4
|
+
ColorRepresentation,
|
|
5
|
+
Mesh,
|
|
6
|
+
NodeMaterial,
|
|
7
|
+
TempNode,
|
|
8
|
+
Texture,
|
|
9
|
+
TextureNode,
|
|
10
|
+
UniformNode,
|
|
11
|
+
Vector2,
|
|
12
|
+
Vector3,
|
|
13
|
+
} from "three/webgpu";
|
|
3
14
|
|
|
4
15
|
export interface WaterMeshOptions {
|
|
5
16
|
normalMap0: Texture;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
BufferGeometry,
|
|
3
|
+
Color,
|
|
4
|
+
ColorRepresentation,
|
|
5
|
+
Mesh,
|
|
6
|
+
NodeMaterial,
|
|
7
|
+
Texture,
|
|
8
|
+
TextureNode,
|
|
9
|
+
UniformNode,
|
|
10
|
+
Vector3,
|
|
11
|
+
} from "three/webgpu";
|
|
3
12
|
|
|
4
13
|
export interface WaterMeshOptions {
|
|
5
14
|
resolution?: number | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Camera, Color,
|
|
1
|
+
import { Camera, Color, Object3D, Scene } from "three";
|
|
2
2
|
|
|
3
3
|
export class SVGObject extends Object3D {
|
|
4
4
|
constructor(node: SVGElement);
|
|
@@ -12,7 +12,7 @@ export class SVGRenderer {
|
|
|
12
12
|
sortObjects: boolean;
|
|
13
13
|
sortElements: boolean;
|
|
14
14
|
overdraw: number;
|
|
15
|
-
outputColorSpace:
|
|
15
|
+
outputColorSpace: string;
|
|
16
16
|
info: { render: { vertices: number; faces: number } };
|
|
17
17
|
|
|
18
18
|
getSize(): { width: number; height: number };
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Node from "
|
|
3
|
-
import TempNode from "../core/TempNode.js";
|
|
4
|
-
import UniformNode from "../core/UniformNode.js";
|
|
5
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Node, TempNode, TextureNode, UniformNode } from "three/webgpu";
|
|
6
3
|
|
|
7
4
|
export default class AfterImageNode extends TempNode {
|
|
8
5
|
textureNode: TextureNode;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Scene } from "
|
|
3
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Camera, Scene } from "three/webgpu";
|
|
4
3
|
import StereoCompositePassNode from "./StereoCompositePassNode.js";
|
|
5
4
|
|
|
6
5
|
declare class AnaglyphPassNode extends StereoCompositePassNode {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import Node from "
|
|
3
|
-
import TempNode from "../core/TempNode.js";
|
|
4
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Node, TempNode, Vector2 } from "three/webgpu";
|
|
5
3
|
|
|
6
4
|
export default class AnamorphicNode extends TempNode {
|
|
7
5
|
textureNode: Node;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Node from "
|
|
3
|
-
import TempNode from "../core/TempNode.js";
|
|
4
|
-
import UniformNode from "../core/UniformNode.js";
|
|
5
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Node, TempNode, TextureNode, UniformNode } from "three/webgpu";
|
|
6
3
|
|
|
7
4
|
declare class BloomNode extends TempNode {
|
|
8
5
|
inputNode: Node;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import Node from "../core/Node.js";
|
|
4
|
-
import TempNode from "../core/TempNode.js";
|
|
5
|
-
import UniformNode from "../core/UniformNode.js";
|
|
6
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Camera, Node, TempNode, UniformNode } from "three/webgpu";
|
|
7
3
|
|
|
8
4
|
declare class DenoiseNode extends TempNode {
|
|
9
5
|
textureNode: Node;
|
|
10
6
|
depthNode: Node;
|
|
11
7
|
normalNode: Node;
|
|
8
|
+
|
|
12
9
|
noiseNode: Node;
|
|
13
10
|
|
|
14
|
-
cameraProjectionMatrixInversion: UniformNode<Matrix4>;
|
|
15
11
|
lumaPhi: UniformNode<number>;
|
|
16
12
|
depthPhi: UniformNode<number>;
|
|
17
13
|
normalPhi: UniformNode<number>;
|
|
@@ -27,6 +23,5 @@ export const denoise: (
|
|
|
27
23
|
node: NodeRepresentation,
|
|
28
24
|
depthNode: NodeRepresentation,
|
|
29
25
|
normalNode: NodeRepresentation,
|
|
30
|
-
noiseNode: NodeRepresentation,
|
|
31
26
|
camera: Camera,
|
|
32
27
|
) => ShaderNodeObject<DenoiseNode>;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Node from "
|
|
3
|
-
import TempNode from "../core/TempNode.js";
|
|
4
|
-
import UniformNode from "../core/UniformNode.js";
|
|
5
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Node, TempNode, TextureNode, UniformNode } from "three/webgpu";
|
|
6
3
|
|
|
7
4
|
declare class DepthOfFieldNode extends TempNode {
|
|
8
5
|
textureNode: TextureNode;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import Node from "
|
|
3
|
-
import TempNode from "../core/TempNode.js";
|
|
4
|
-
import UniformNode from "../core/UniformNode.js";
|
|
5
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Node, TempNode, UniformNode, Vector2 } from "three/webgpu";
|
|
6
3
|
|
|
7
4
|
declare class DotScreenNode extends TempNode {
|
|
8
5
|
inputNode: Node;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import TempNode from "
|
|
3
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { TempNode, TextureNode } from "three/webgpu";
|
|
4
3
|
|
|
5
4
|
declare class FXAANode extends TempNode {
|
|
6
5
|
textureNode: TextureNode;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import TempNode from "
|
|
3
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Node, TempNode } from "three/webgpu";
|
|
4
3
|
|
|
5
4
|
declare class FilmNode extends TempNode {
|
|
6
5
|
inputNode: Node;
|
|
@@ -1,28 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Vector2 } from "../../math/Vector2.js";
|
|
4
|
-
import TextureNode from "../accessors/TextureNode.js";
|
|
5
|
-
import Node from "../core/Node.js";
|
|
6
|
-
import TempNode from "../core/TempNode.js";
|
|
7
|
-
import UniformNode from "../core/UniformNode.js";
|
|
8
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Camera, Node, TempNode, TextureNode, UniformNode, Vector2 } from "three/webgpu";
|
|
9
3
|
|
|
10
4
|
declare class GTAONode extends TempNode {
|
|
11
5
|
depthNode: Node;
|
|
12
6
|
normalNode: Node;
|
|
13
7
|
|
|
8
|
+
resolutionScale: number;
|
|
9
|
+
|
|
14
10
|
radius: ShaderNodeObject<UniformNode<number>>;
|
|
15
11
|
resolution: ShaderNodeObject<UniformNode<Vector2>>;
|
|
16
12
|
thickness: ShaderNodeObject<UniformNode<number>>;
|
|
17
13
|
distanceExponent: ShaderNodeObject<UniformNode<number>>;
|
|
18
14
|
distanceFallOff: ShaderNodeObject<UniformNode<number>>;
|
|
19
15
|
scale: ShaderNodeObject<UniformNode<number>>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
cameraProjectionMatrix: ShaderNodeObject<UniformNode<Matrix4>>;
|
|
23
|
-
cameraProjectionMatrixInverse: ShaderNodeObject<UniformNode<Matrix4>>;
|
|
24
|
-
|
|
25
|
-
SAMPLES: ShaderNodeObject<UniformNode<number>>;
|
|
16
|
+
samples: ShaderNodeObject<UniformNode<number>>;
|
|
26
17
|
|
|
27
18
|
constructor(depthNode: Node, normalNode: Node, camera: Camera);
|
|
28
19
|
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import TextureNode from "
|
|
3
|
-
import Node from "../core/Node.js";
|
|
4
|
-
import TempNode from "../core/TempNode.js";
|
|
5
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Node, TempNode, TextureNode, Vector2 } from "three/webgpu";
|
|
6
3
|
|
|
7
4
|
declare class GaussianBlurNode extends TempNode {
|
|
8
5
|
textureNode: TextureNode;
|
|
@@ -11,8 +8,14 @@ declare class GaussianBlurNode extends TempNode {
|
|
|
11
8
|
|
|
12
9
|
resolution: Vector2;
|
|
13
10
|
|
|
11
|
+
premultipliedAlpha: boolean;
|
|
12
|
+
|
|
14
13
|
constructor(textureNode: TextureNode, directionNode?: Node | null, sigma?: number);
|
|
15
14
|
|
|
15
|
+
setPremultipliedAlpha(value: boolean): this;
|
|
16
|
+
|
|
17
|
+
getPremultipliedAlpha(): boolean;
|
|
18
|
+
|
|
16
19
|
setSize(width: number, height: number): void;
|
|
17
20
|
|
|
18
21
|
getTextureNode(): TextureNode;
|
|
@@ -25,3 +28,8 @@ export const gaussianBlur: (
|
|
|
25
28
|
directionNode?: NodeRepresentation | null,
|
|
26
29
|
sigma?: number,
|
|
27
30
|
) => ShaderNodeObject<GaussianBlurNode>;
|
|
31
|
+
export const premultipliedGaussianBlur: (
|
|
32
|
+
node: NodeRepresentation,
|
|
33
|
+
directionNode?: NodeRepresentation | null,
|
|
34
|
+
sigma?: number,
|
|
35
|
+
) => ShaderNodeObject<GaussianBlurNode>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { TempNode, TextureNode, UniformNode, Vector3 } from "three/webgpu";
|
|
3
|
+
|
|
4
|
+
interface LensflareNodeParams {
|
|
5
|
+
ghostTint?: NodeRepresentation | undefined;
|
|
6
|
+
threshold?: NodeRepresentation | undefined;
|
|
7
|
+
ghostSamples?: NodeRepresentation | undefined;
|
|
8
|
+
ghostSpacing?: NodeRepresentation | undefined;
|
|
9
|
+
ghostAttenuationFactor?: NodeRepresentation | undefined;
|
|
10
|
+
downSampleRatio?: number | undefined;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare class LensflareNode extends TempNode {
|
|
14
|
+
textureNode: TextureNode;
|
|
15
|
+
|
|
16
|
+
ghostTintNode: ShaderNodeObject<UniformNode<Vector3>>;
|
|
17
|
+
thresholdNode: ShaderNodeObject<UniformNode<number>>;
|
|
18
|
+
ghostSamplesNode: ShaderNodeObject<UniformNode<number>>;
|
|
19
|
+
ghostSpacingNode: ShaderNodeObject<UniformNode<number>>;
|
|
20
|
+
ghostAttenuationFactorNode: ShaderNodeObject<UniformNode<number>>;
|
|
21
|
+
downSampleRatio: number;
|
|
22
|
+
|
|
23
|
+
constructor(textureNode: TextureNode, params?: LensflareNodeParams);
|
|
24
|
+
|
|
25
|
+
getTextureNode(): TextureNode;
|
|
26
|
+
|
|
27
|
+
setSize(width: number, height: number): void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default LensflareNode;
|
|
31
|
+
|
|
32
|
+
export const lensflare: (
|
|
33
|
+
inputNode: NodeRepresentation,
|
|
34
|
+
params?: LensflareNodeParams,
|
|
35
|
+
) => ShaderNodeObject<LensflareNode>;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import Texture3DNode from "
|
|
3
|
-
import Node from "../core/Node.js";
|
|
4
|
-
import TempNode from "../core/TempNode.js";
|
|
5
|
-
import UniformNode from "../core/UniformNode.js";
|
|
6
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Data3DTexture, Node, TempNode, Texture3DNode, UniformNode } from "three/webgpu";
|
|
7
3
|
|
|
8
4
|
declare class Lut3DNode extends TempNode {
|
|
9
5
|
inputNode: Node;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Node } from "three/webgpu";
|
|
3
3
|
|
|
4
4
|
export const motionBlur: (
|
|
5
5
|
inputNode: NodeRepresentation,
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Camera, Node, Object3D, Scene, TempNode, TextureNode, UniformNode } from "three/webgpu";
|
|
3
|
+
|
|
4
|
+
export interface OutlineNodeParams {
|
|
5
|
+
selectedObjects?: Object3D[] | undefined;
|
|
6
|
+
edgeThickness?: NodeRepresentation | undefined;
|
|
7
|
+
edgeGlow?: NodeRepresentation | undefined;
|
|
8
|
+
downSampleRatio?: number | undefined;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare class OutlineNode extends TempNode {
|
|
12
|
+
scene: Scene;
|
|
13
|
+
camera: Camera;
|
|
14
|
+
selectedObjects: Object3D[];
|
|
15
|
+
edgeThicknessNode: ShaderNodeObject<UniformNode<number>>;
|
|
16
|
+
edgeGlowNode: ShaderNodeObject<UniformNode<number>>;
|
|
17
|
+
downSampleRatio: number;
|
|
18
|
+
|
|
19
|
+
constructor(scene: Scene, camera: Camera, params?: OutlineNodeParams);
|
|
20
|
+
|
|
21
|
+
get visibleEdge(): ShaderNodeObject<Node>;
|
|
22
|
+
|
|
23
|
+
get hiddenEdge(): ShaderNodeObject<Node>;
|
|
24
|
+
|
|
25
|
+
getTextureNode(): ShaderNodeObject<TextureNode>;
|
|
26
|
+
|
|
27
|
+
setSize(width: number, height: number): void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default OutlineNode;
|
|
31
|
+
|
|
32
|
+
export const outline: (scene: Scene, camera: Camera, params?: OutlineNodeParams) => ShaderNodeObject<OutlineNode>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Scene } from "
|
|
3
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Camera, Scene } from "three/webgpu";
|
|
4
3
|
import StereoCompositePassNode from "./StereoCompositePassNode.js";
|
|
5
4
|
|
|
6
5
|
declare class ParallaxBarrierPassNode extends StereoCompositePassNode {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Scene } from "
|
|
3
|
-
import UniformNode from "../core/UniformNode.js";
|
|
4
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
|
-
import PassNode from "./PassNode.js";
|
|
1
|
+
import { ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Camera, PassNode, Scene, UniformNode } from "three/webgpu";
|
|
6
3
|
|
|
7
4
|
declare class PixelationPassNode extends PassNode {
|
|
8
5
|
pixelSize: UniformNode<number>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import TempNode from "
|
|
3
|
-
import UniformNode from "../core/UniformNode.js";
|
|
4
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { TempNode, TextureNode, UniformNode } from "three/webgpu";
|
|
5
3
|
|
|
6
4
|
export default class RGBShiftNode extends TempNode {
|
|
7
5
|
textureNode: TextureNode;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { TempNode, TextureNode } from "three/webgpu";
|
|
3
|
+
|
|
4
|
+
declare class SMAANode extends TempNode {
|
|
5
|
+
textureNode: TextureNode;
|
|
6
|
+
|
|
7
|
+
constructor(textureNode: TextureNode);
|
|
8
|
+
|
|
9
|
+
getTextureNode(): TextureNode;
|
|
10
|
+
|
|
11
|
+
setSize(width: number, height: number): void;
|
|
12
|
+
|
|
13
|
+
getAreaTexture(): string;
|
|
14
|
+
|
|
15
|
+
getSearchTexture(): string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const smaa: (node: NodeRepresentation) => ShaderNodeObject<SMAANode>;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { RenderTarget } from "
|
|
3
|
-
import { Color } from "../../math/Color.js";
|
|
4
|
-
import { Scene } from "../../scenes/Scene.js";
|
|
5
|
-
import UniformNode from "../core/UniformNode.js";
|
|
6
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
7
|
-
import PassNode from "./PassNode.js";
|
|
1
|
+
import { ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Camera, Color, PassNode, RenderTarget, Scene, UniformNode } from "three/webgpu";
|
|
8
3
|
|
|
9
4
|
declare class SSAAPassNode extends PassNode {
|
|
10
5
|
readonly isSSAAPassNode: boolean;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Camera, Node, TempNode, TextureNode, UniformNode } from "three/webgpu";
|
|
3
|
+
|
|
4
|
+
declare class SSRNode extends TempNode {
|
|
5
|
+
colorNode: ShaderNodeObject<Node>;
|
|
6
|
+
depthNode: ShaderNodeObject<Node>;
|
|
7
|
+
normalNode: ShaderNodeObject<Node>;
|
|
8
|
+
metalnessNode: ShaderNodeObject<Node>;
|
|
9
|
+
camera: Camera;
|
|
10
|
+
|
|
11
|
+
resolutionScale: number;
|
|
12
|
+
|
|
13
|
+
maxDistance: UniformNode<number>;
|
|
14
|
+
thickness: UniformNode<number>;
|
|
15
|
+
opacity: UniformNode<number>;
|
|
16
|
+
|
|
17
|
+
constructor(
|
|
18
|
+
colorNode: ShaderNodeObject<Node>,
|
|
19
|
+
depthNode: ShaderNodeObject<Node>,
|
|
20
|
+
normalNode: ShaderNodeObject<Node>,
|
|
21
|
+
metalnessNode: ShaderNodeObject<Node>,
|
|
22
|
+
camera: Camera,
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
getTextureNode(): ShaderNodeObject<TextureNode>;
|
|
26
|
+
|
|
27
|
+
setSize(width: number, height: number): void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default SSRNode;
|
|
31
|
+
|
|
32
|
+
export const ssr: (
|
|
33
|
+
colorNode: NodeRepresentation,
|
|
34
|
+
depthNode: NodeRepresentation,
|
|
35
|
+
normalNode: NodeRepresentation,
|
|
36
|
+
metalnessNode: NodeRepresentation,
|
|
37
|
+
camera: Camera,
|
|
38
|
+
) => ShaderNodeObject<SSRNode>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import TempNode from "
|
|
3
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { TempNode, TextureNode } from "three/webgpu";
|
|
4
3
|
|
|
5
4
|
declare class SobelOperatorNode extends TempNode {
|
|
6
5
|
textureNode: TextureNode;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { Camera } from "
|
|
2
|
-
import { StereoCamera } from "../../cameras/StereoCamera.js";
|
|
3
|
-
import { CoordinateSystem } from "../../constants.js";
|
|
4
|
-
import { Scene } from "../../scenes/Scene.js";
|
|
5
|
-
import PassNode from "./PassNode.js";
|
|
1
|
+
import { Camera, CoordinateSystem, PassNode, Scene, StereoCamera } from "three/webgpu";
|
|
6
2
|
|
|
7
3
|
declare class StereoCompositePassNode extends PassNode {
|
|
8
4
|
readonly isStereoCompositePassNode: true;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { StereoCamera } from "
|
|
3
|
-
import { Scene } from "../../scenes/Scene.js";
|
|
4
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
|
-
import PassNode from "./PassNode.js";
|
|
1
|
+
import { ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Camera, PassNode, Scene, StereoCamera } from "three/webgpu";
|
|
6
3
|
|
|
7
4
|
declare class StereoPassNode extends PassNode {
|
|
8
5
|
readonly isStereoPassNode: true;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Camera, ColorRepresentation, PassNode, Scene } from "three/webgpu";
|
|
3
|
+
|
|
4
|
+
declare class TRAAPassNode extends PassNode {
|
|
5
|
+
readonly isTRAAPassNode: true;
|
|
6
|
+
|
|
7
|
+
clearColor: ColorRepresentation;
|
|
8
|
+
clearAlpha: number;
|
|
9
|
+
|
|
10
|
+
constructor(scene: Scene, camera: Camera);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default TRAAPassNode;
|
|
14
|
+
|
|
15
|
+
export const traaPass: (scene: Scene, camera: Camera) => ShaderNodeObject<TRAAPassNode>;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Node from "
|
|
3
|
-
import TempNode from "../core/TempNode.js";
|
|
4
|
-
import UniformNode from "../core/UniformNode.js";
|
|
5
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Node, TempNode, TextureNode, UniformNode } from "three/webgpu";
|
|
6
3
|
|
|
7
4
|
declare class TransitionNode extends TempNode {
|
|
8
5
|
textureNodeA: TextureNode;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { Node } from "three/webgpu";
|
|
3
|
+
|
|
4
|
+
export const hashBlur: (
|
|
5
|
+
textureNode: NodeRepresentation,
|
|
6
|
+
bluramount?: NodeRepresentation,
|
|
7
|
+
repeats?: NodeRepresentation,
|
|
8
|
+
) => ShaderNodeObject<Node>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
|
|
2
|
+
import { LightsNode, Node } from "three/webgpu";
|
|
3
|
+
|
|
4
|
+
export const circleIntersectsAABB: (
|
|
5
|
+
circleCenter: NodeRepresentation,
|
|
6
|
+
radius: NodeRepresentation,
|
|
7
|
+
minBounds: NodeRepresentation,
|
|
8
|
+
maxBounds: NodeRepresentation,
|
|
9
|
+
) => ShaderNodeObject<Node>;
|
|
10
|
+
|
|
11
|
+
declare class TiledLightsNode extends LightsNode {
|
|
12
|
+
constructor(maxLights?: number, tileSize?: number);
|
|
13
|
+
|
|
14
|
+
updateLightsTexture(): void;
|
|
15
|
+
|
|
16
|
+
getBlock(block?: number): ShaderNodeObject<Node>;
|
|
17
|
+
|
|
18
|
+
setSize(width: number, height: number): this;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default TiledLightsNode;
|
|
22
|
+
|
|
23
|
+
export const tiledLights: (maxLights?: number, tileSize?: number) => ShaderNodeObject<TiledLightsNode>;
|