@types/three 0.168.0 → 0.170.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.webgpu.nodes.d.ts +1 -0
- three/build/three.webgpu.nodes.min.d.ts +1 -0
- three/examples/jsm/Addons.d.ts +3 -10
- 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 +1 -1
- three/examples/jsm/controls/DragControls.d.ts +0 -15
- three/examples/jsm/controls/TransformControls.d.ts +195 -24
- 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 +46 -0
- three/examples/jsm/curves/NURBSCurve.d.ts +12 -1
- three/examples/jsm/exporters/EXRExporter.d.ts +7 -2
- three/examples/jsm/exporters/GLTFExporter.d.ts +20 -3
- three/examples/jsm/exporters/KTX2Exporter.d.ts +3 -1
- 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 +9 -3
- three/examples/jsm/geometries/TeapotGeometry.d.ts +2 -2
- three/examples/jsm/helpers/LightProbeHelper.d.ts +5 -3
- three/examples/jsm/helpers/LightProbeHelperGPU.d.ts +12 -0
- three/examples/jsm/helpers/TextureHelperGPU.d.ts +10 -0
- three/examples/jsm/lighting/TiledLighting.d.ts +10 -0
- three/examples/jsm/lights/LightProbeGenerator.d.ts +5 -1
- three/examples/jsm/lines/Line2.d.ts +15 -1
- three/examples/jsm/lines/LineGeometry.d.ts +18 -1
- three/examples/jsm/lines/LineMaterial.d.ts +65 -12
- three/examples/jsm/lines/LineSegments2.d.ts +25 -2
- three/examples/jsm/lines/LineSegmentsGeometry.d.ts +46 -9
- 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/DRACOLoader.d.ts +6 -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/modifiers/CurveModifier.d.ts +7 -3
- three/examples/jsm/modifiers/CurveModifierGPU.d.ts +31 -0
- three/examples/jsm/objects/Lensflare.d.ts +13 -9
- three/examples/jsm/objects/LensflareMesh.d.ts +21 -0
- three/examples/jsm/renderers/SVGRenderer.d.ts +2 -2
- three/{src/nodes → examples/jsm/tsl}/display/AfterImageNode.d.ts +1 -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 +3 -0
- three/{src/nodes → examples/jsm/tsl}/display/BloomNode.d.ts +1 -5
- three/{src/nodes → examples/jsm/tsl}/display/DenoiseNode.d.ts +2 -6
- three/{src/nodes → examples/jsm/tsl}/display/DepthOfFieldNode.d.ts +1 -5
- three/{src/nodes → examples/jsm/tsl}/display/DotScreenNode.d.ts +2 -5
- three/{src/nodes → examples/jsm/tsl}/display/FXAANode.d.ts +1 -3
- three/{src/nodes → examples/jsm/tsl}/display/FilmNode.d.ts +1 -3
- three/{src/nodes → examples/jsm/tsl}/display/GTAONode.d.ts +2 -8
- 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 +1 -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 +1 -4
- three/examples/jsm/tsl/display/SMAANode.d.ts +17 -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 +3 -0
- three/{src/nodes → examples/jsm/tsl}/display/SobelOperatorNode.d.ts +1 -3
- three/{src/nodes → examples/jsm/tsl}/display/StereoCompositePassNode.d.ts +2 -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 +1 -5
- three/examples/jsm/tsl/display/hashBlur.d.ts +7 -0
- three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +22 -0
- three/examples/jsm/utils/GeometryCompressionUtils.d.ts +20 -4
- three/examples/jsm/utils/ShadowMapViewer.d.ts +8 -6
- three/examples/jsm/utils/ShadowMapViewerGPU.d.ts +26 -0
- three/examples/jsm/utils/SkeletonUtils.d.ts +25 -5
- three/examples/jsm/utils/WebGPUTextureUtils.d.ts +3 -0
- three/package.json +4 -3
- three/src/Three.WebGPU.Nodes.d.ts +205 -0
- three/src/Three.WebGPU.d.ts +7 -2
- three/src/Three.d.ts +2 -7
- three/src/audio/Audio.d.ts +4 -1
- three/src/constants.d.ts +1 -9
- three/src/core/BufferAttribute.d.ts +0 -15
- three/src/core/BufferGeometry.d.ts +13 -2
- three/src/core/InterleavedBuffer.d.ts +0 -12
- three/src/core/Object3D.d.ts +1 -1
- three/src/core/Raycaster.d.ts +2 -1
- three/src/core/RenderTarget.d.ts +1 -2
- three/src/extras/Controls.d.ts +3 -3
- three/src/loaders/FileLoader.d.ts +3 -3
- three/src/loaders/MaterialLoader.d.ts +2 -0
- three/src/loaders/nodes/NodeLoader.d.ts +5 -0
- three/src/loaders/nodes/NodeMaterialLoader.d.ts +3 -0
- three/src/loaders/nodes/NodeObjectLoader.d.ts +12 -0
- three/src/materials/LineBasicMaterial.d.ts +0 -5
- three/src/materials/LineDashedMaterial.d.ts +0 -5
- three/src/materials/Material.d.ts +4 -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/MeshNormalNodeMaterial.d.ts +2 -2
- three/src/materials/nodes/NodeMaterial.d.ts +4 -4
- three/src/materials/nodes/NodeMaterials.d.ts +19 -16
- three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +96 -0
- three/src/math/Color.d.ts +39 -22
- three/src/math/ColorManagement.d.ts +24 -24
- three/src/math/Quaternion.d.ts +4 -3
- three/src/math/Triangle.d.ts +24 -0
- three/src/math/Vector4.d.ts +2 -0
- three/src/nodes/Nodes.d.ts +3 -23
- three/src/nodes/TSL.d.ts +75 -187
- three/src/nodes/accessors/BufferAttributeNode.d.ts +1 -0
- three/src/nodes/accessors/Camera.d.ts +0 -1
- three/src/nodes/accessors/MaterialNode.d.ts +0 -1
- three/src/nodes/accessors/ModelNode.d.ts +7 -3
- three/src/nodes/accessors/Normal.d.ts +6 -0
- three/src/nodes/accessors/Object3DNode.d.ts +1 -5
- three/src/nodes/accessors/SceneNode.d.ts +2 -0
- three/src/nodes/accessors/UniformArrayNode.d.ts +2 -2
- three/src/nodes/accessors/VelocityNode.d.ts +6 -1
- three/src/nodes/code/ScriptableNode.d.ts +1 -1
- three/src/nodes/core/Node.d.ts +3 -12
- three/src/nodes/core/NodeUtils.d.ts +5 -1
- three/src/nodes/core/StackNode.d.ts +4 -4
- three/src/nodes/core/StructTypeNode.d.ts +1 -0
- three/src/nodes/core/UniformNode.d.ts +1 -0
- three/src/nodes/core/VarNode.d.ts +12 -1
- 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 +33 -8
- three/src/nodes/display/RenderOutputNode.d.ts +4 -4
- three/src/nodes/display/ScreenNode.d.ts +48 -0
- three/src/nodes/display/ToneMappingFunctions.d.ts +6 -6
- three/src/nodes/display/ToonOutlinePassNode.d.ts +24 -0
- three/src/nodes/display/ViewportDepthNode.d.ts +2 -0
- three/src/nodes/functions/material/getAlphaHashThreshold.d.ts +6 -0
- three/src/nodes/functions/material/getParallaxCorrectNormal.d.ts +10 -0
- three/src/nodes/functions/material/getShIrradianceAt.d.ts +6 -0
- three/src/nodes/gpgpu/ComputeNode.d.ts +5 -0
- three/src/nodes/lighting/LightsNode.d.ts +7 -2
- three/src/nodes/lighting/PointLightNode.d.ts +11 -1
- three/src/nodes/lighting/ShadowNode.d.ts +12 -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/Timer.d.ts +21 -0
- three/src/objects/BatchedMesh.d.ts +78 -0
- three/src/objects/Group.d.ts +0 -6
- three/src/objects/LOD.d.ts +7 -0
- three/src/renderers/WebGLRenderer.d.ts +24 -23
- three/src/renderers/common/BundleGroup.d.ts +10 -0
- three/src/renderers/common/ClippingContext.d.ts +1 -1
- 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/RenderBundles.d.ts +3 -3
- three/src/renderers/common/RenderContext.d.ts +2 -2
- three/src/renderers/common/RenderList.d.ts +7 -3
- three/src/renderers/common/RenderLists.d.ts +3 -1
- three/src/renderers/common/RenderObject.d.ts +20 -1
- three/src/renderers/common/Renderer.d.ts +43 -10
- three/src/renderers/common/extras/PMREMGenerator.d.ts +5 -1
- three/src/renderers/common/nodes/NodeBuilderState.d.ts +3 -2
- three/src/renderers/common/nodes/NodeLibrary.d.ts +0 -7
- three/src/renderers/common/nodes/Nodes.d.ts +8 -0
- three/src/renderers/webgl/WebGLCapabilities.d.ts +13 -0
- three/src/renderers/webgl/WebGLPrograms.d.ts +4 -10
- three/src/renderers/webgl/WebGLState.d.ts +13 -10
- three/src/renderers/webgl/WebGLUtils.d.ts +2 -2
- three/src/renderers/webgpu/WebGPURenderer.Nodes.d.ts +12 -0
- three/src/renderers/webgpu/WebGPURenderer.d.ts +7 -3
- three/src/renderers/webgpu/nodes/BasicNodeLibrary.d.ts +5 -0
- three/src/renderers/webgpu/nodes/StandardNodeLibrary.d.ts +5 -0
- three/src/textures/CompressedTexture.d.ts +1 -2
- three/src/textures/CubeTexture.d.ts +1 -2
- three/src/textures/DataTexture.d.ts +1 -2
- three/src/textures/Texture.d.ts +3 -4
- three/examples/jsm/cameras/CinematicCamera.d.ts +0 -34
- three/examples/jsm/geometries/SDFGeometryGenerator.d.ts +0 -16
- three/examples/jsm/loaders/TiltLoader.d.ts +0 -7
- three/examples/jsm/utils/GPUStatsPanel.d.ts +0 -12
- three/examples/jsm/utils/PackedPhongMaterial.d.ts +0 -10
- three/src/nodes/display/BleachBypass.d.ts +0 -4
- three/src/nodes/display/Sepia.d.ts +0 -4
- three/src/nodes/display/ViewportNode.d.ts +0 -38
- three/src/nodes/utils/OscNode.d.ts +0 -25
- three/src/nodes/utils/TimerNode.d.ts +0 -25
- three/src/renderers/common/StandardRenderer.d.ts +0 -12
- /three/examples/jsm/utils/{TextureUtils.d.ts → WebGLTextureUtils.d.ts} +0 -0
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ColorSpace,
|
|
3
|
-
Combine,
|
|
4
|
-
DepthPackingStrategies,
|
|
5
|
-
GLSLVersion,
|
|
6
|
-
Mapping,
|
|
7
|
-
ShadowMapType,
|
|
8
|
-
ToneMapping,
|
|
9
|
-
} from "../../constants.js";
|
|
1
|
+
import { Combine, DepthPackingStrategies, GLSLVersion, Mapping, ShadowMapType, ToneMapping } from "../../constants.js";
|
|
10
2
|
import { Object3D } from "../../core/Object3D.js";
|
|
11
3
|
import { Light } from "../../lights/Light.js";
|
|
12
4
|
import { Material } from "../../materials/Material.js";
|
|
@@ -45,7 +37,7 @@ export interface WebGLProgramParameters {
|
|
|
45
37
|
instancingMorph: boolean;
|
|
46
38
|
|
|
47
39
|
supportsVertexTextures: boolean;
|
|
48
|
-
outputColorSpace:
|
|
40
|
+
outputColorSpace: string;
|
|
49
41
|
alphaToCoverage: boolean;
|
|
50
42
|
|
|
51
43
|
map: boolean;
|
|
@@ -155,6 +147,7 @@ export interface WebGLProgramParameters {
|
|
|
155
147
|
|
|
156
148
|
sizeAttenuation: boolean;
|
|
157
149
|
logarithmicDepthBuffer: boolean;
|
|
150
|
+
reverseDepthBuffer: boolean;
|
|
158
151
|
|
|
159
152
|
skinning: boolean;
|
|
160
153
|
|
|
@@ -189,6 +182,7 @@ export interface WebGLProgramParameters {
|
|
|
189
182
|
toneMapping: ToneMapping;
|
|
190
183
|
|
|
191
184
|
decodeVideoTexture: boolean;
|
|
185
|
+
decodeVideoTextureEmissive: boolean;
|
|
192
186
|
|
|
193
187
|
premultipliedAlpha: boolean;
|
|
194
188
|
|
|
@@ -9,19 +9,20 @@ import {
|
|
|
9
9
|
import { Material } from "../../materials/Material.js";
|
|
10
10
|
import { Vector4 } from "../../math/Vector4.js";
|
|
11
11
|
import { WebGLRenderTarget } from "../WebGLRenderTarget.js";
|
|
12
|
+
import { WebGLExtensions } from "./WebGLExtensions.js";
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
constructor();
|
|
15
|
-
|
|
14
|
+
declare class ColorBuffer {
|
|
16
15
|
setMask(colorMask: boolean): void;
|
|
17
16
|
setLocked(lock: boolean): void;
|
|
18
17
|
setClear(r: number, g: number, b: number, a: number, premultipliedAlpha: boolean): void;
|
|
19
18
|
reset(): void;
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
declare class DepthBuffer {
|
|
23
22
|
constructor();
|
|
24
23
|
|
|
24
|
+
setReversed(value: boolean): void;
|
|
25
|
+
getReversed(): boolean;
|
|
25
26
|
setTest(depthTest: boolean): void;
|
|
26
27
|
setMask(depthMask: boolean): void;
|
|
27
28
|
setFunc(depthFunc: DepthModes): void;
|
|
@@ -30,7 +31,7 @@ export class WebGLDepthBuffer {
|
|
|
30
31
|
reset(): void;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
declare class StencilBuffer {
|
|
34
35
|
constructor();
|
|
35
36
|
|
|
36
37
|
setTest(stencilTest: boolean): void;
|
|
@@ -42,13 +43,13 @@ export class WebGLStencilBuffer {
|
|
|
42
43
|
reset(): void;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
constructor(gl: WebGLRenderingContext);
|
|
46
|
+
declare class WebGLState {
|
|
47
|
+
constructor(gl: WebGLRenderingContext, extensions: WebGLExtensions);
|
|
47
48
|
|
|
48
49
|
buffers: {
|
|
49
|
-
color:
|
|
50
|
-
depth:
|
|
51
|
-
stencil:
|
|
50
|
+
color: ColorBuffer;
|
|
51
|
+
depth: DepthBuffer;
|
|
52
|
+
stencil: StencilBuffer;
|
|
52
53
|
};
|
|
53
54
|
|
|
54
55
|
enable(id: number): void;
|
|
@@ -114,3 +115,5 @@ export class WebGLState {
|
|
|
114
115
|
viewport(viewport: Vector4): void;
|
|
115
116
|
reset(): void;
|
|
116
117
|
}
|
|
118
|
+
|
|
119
|
+
export { WebGLState };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompressedPixelFormat, PixelFormat, TextureDataType } from "../../constants.js";
|
|
2
2
|
import { WebGLExtensions } from "./WebGLExtensions.js";
|
|
3
3
|
|
|
4
4
|
export class WebGLUtils {
|
|
@@ -7,5 +7,5 @@ export class WebGLUtils {
|
|
|
7
7
|
extensions: WebGLExtensions,
|
|
8
8
|
);
|
|
9
9
|
|
|
10
|
-
convert(p: PixelFormat | CompressedPixelFormat | TextureDataType, colorSpace?:
|
|
10
|
+
convert(p: PixelFormat | CompressedPixelFormat | TextureDataType, colorSpace?: string): number | null;
|
|
11
11
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Renderer, { RendererParameters } from "../common/Renderer.js";
|
|
2
|
+
import { WebGPUBackendParameters } from "./WebGPUBackend.js";
|
|
3
|
+
|
|
4
|
+
export interface WebGPURendererParameters extends RendererParameters, WebGPUBackendParameters {
|
|
5
|
+
forceWebGL?: boolean | undefined;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default class WebGPURenderer extends Renderer {
|
|
9
|
+
readonly isWebGPURenderer: true;
|
|
10
|
+
|
|
11
|
+
constructor(parameters?: WebGPURendererParameters);
|
|
12
|
+
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Renderer, { RendererParameters } from "../common/Renderer.js";
|
|
2
2
|
import { WebGPUBackendParameters } from "./WebGPUBackend.js";
|
|
3
3
|
|
|
4
|
-
export interface WebGPURendererParameters extends
|
|
4
|
+
export interface WebGPURendererParameters extends RendererParameters, WebGPUBackendParameters {
|
|
5
5
|
forceWebGL?: boolean | undefined;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
declare class WebGPURenderer extends Renderer {
|
|
9
|
+
readonly isWebGPURenderer: true;
|
|
10
|
+
|
|
9
11
|
constructor(parameters?: WebGPURendererParameters);
|
|
10
12
|
}
|
|
13
|
+
|
|
14
|
+
export default WebGPURenderer;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
ColorSpace,
|
|
3
2
|
CompressedPixelFormat,
|
|
4
3
|
MagnificationTextureFilter,
|
|
5
4
|
Mapping,
|
|
@@ -51,7 +50,7 @@ export class CompressedTexture extends Texture {
|
|
|
51
50
|
magFilter?: MagnificationTextureFilter,
|
|
52
51
|
minFilter?: MinificationTextureFilter,
|
|
53
52
|
anisotropy?: number,
|
|
54
|
-
colorSpace?:
|
|
53
|
+
colorSpace?: string,
|
|
55
54
|
);
|
|
56
55
|
|
|
57
56
|
/**
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
ColorSpace,
|
|
3
2
|
CubeTextureMapping,
|
|
4
3
|
MagnificationTextureFilter,
|
|
5
4
|
MinificationTextureFilter,
|
|
@@ -52,7 +51,7 @@ export class CubeTexture extends Texture {
|
|
|
52
51
|
format?: PixelFormat,
|
|
53
52
|
type?: TextureDataType,
|
|
54
53
|
anisotropy?: number,
|
|
55
|
-
colorSpace?:
|
|
54
|
+
colorSpace?: string,
|
|
56
55
|
);
|
|
57
56
|
|
|
58
57
|
/**
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
ColorSpace,
|
|
3
2
|
MagnificationTextureFilter,
|
|
4
3
|
Mapping,
|
|
5
4
|
MinificationTextureFilter,
|
|
@@ -64,7 +63,7 @@ export class DataTexture extends Texture {
|
|
|
64
63
|
magFilter?: MagnificationTextureFilter,
|
|
65
64
|
minFilter?: MinificationTextureFilter,
|
|
66
65
|
anisotropy?: number,
|
|
67
|
-
colorSpace?:
|
|
66
|
+
colorSpace?: string,
|
|
68
67
|
);
|
|
69
68
|
|
|
70
69
|
/**
|
three/src/textures/Texture.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AnyMapping,
|
|
3
3
|
AnyPixelFormat,
|
|
4
|
-
ColorSpace,
|
|
5
4
|
MagnificationTextureFilter,
|
|
6
5
|
Mapping,
|
|
7
6
|
MinificationTextureFilter,
|
|
@@ -38,7 +37,7 @@ export interface TextureJSON {
|
|
|
38
37
|
format: AnyPixelFormat;
|
|
39
38
|
internalFormat: PixelFormatGPU | null;
|
|
40
39
|
type: TextureDataType;
|
|
41
|
-
colorSpace:
|
|
40
|
+
colorSpace: string;
|
|
42
41
|
|
|
43
42
|
minFilter: MinificationTextureFilter;
|
|
44
43
|
magFilter: MagnificationTextureFilter;
|
|
@@ -99,7 +98,7 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
|
|
|
99
98
|
format?: PixelFormat,
|
|
100
99
|
type?: TextureDataType,
|
|
101
100
|
anisotropy?: number,
|
|
102
|
-
colorSpace?:
|
|
101
|
+
colorSpace?: string,
|
|
103
102
|
);
|
|
104
103
|
|
|
105
104
|
/**
|
|
@@ -369,7 +368,7 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
|
|
|
369
368
|
* @see {@link THREE.TextureDataType}
|
|
370
369
|
* @defaultValue {@link THREE.NoColorSpace}
|
|
371
370
|
*/
|
|
372
|
-
colorSpace:
|
|
371
|
+
colorSpace: string;
|
|
373
372
|
|
|
374
373
|
/**
|
|
375
374
|
* Indicates whether a texture belongs to a render target or not
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { OrthographicCamera, PerspectiveCamera, Scene, ShaderMaterial, WebGLRenderer, WebGLRenderTarget } from "three";
|
|
2
|
-
|
|
3
|
-
import { BokehShaderUniforms } from "../shaders/BokehShader2.js";
|
|
4
|
-
|
|
5
|
-
export class CinematicCamera extends PerspectiveCamera {
|
|
6
|
-
constructor(fov: number, aspect: number, near: number, far: number);
|
|
7
|
-
|
|
8
|
-
postprocessing: {
|
|
9
|
-
enabled: boolean;
|
|
10
|
-
scene: Scene;
|
|
11
|
-
camera: OrthographicCamera;
|
|
12
|
-
rtTextureDepth: WebGLRenderTarget;
|
|
13
|
-
rtTextureColor: WebGLRenderTarget;
|
|
14
|
-
bokeh_uniforms: BokehShaderUniforms;
|
|
15
|
-
};
|
|
16
|
-
shaderSettings: {
|
|
17
|
-
rings: number;
|
|
18
|
-
samples: number;
|
|
19
|
-
};
|
|
20
|
-
materialDepth: ShaderMaterial;
|
|
21
|
-
coc: number;
|
|
22
|
-
aperture: number;
|
|
23
|
-
fNumber: number;
|
|
24
|
-
hyperFocal: number;
|
|
25
|
-
filmGauge: number;
|
|
26
|
-
|
|
27
|
-
linearize(depth: number): number;
|
|
28
|
-
smoothstep(near: number, far: number, depth: number): number;
|
|
29
|
-
saturate(x: number): number;
|
|
30
|
-
focusAt(focusDistance: number): void;
|
|
31
|
-
initPostProcessing(): void;
|
|
32
|
-
renderCinematic(scene: Scene, renderer: WebGLRenderer): void;
|
|
33
|
-
setLens(focalLength: number, frameHeight?: number, fNumber?: number, coc?: number): void;
|
|
34
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BufferGeometry, WebGLRenderer, WebGLRenderTarget } from "three";
|
|
2
|
-
|
|
3
|
-
export class SDFGeometryGenerator {
|
|
4
|
-
constructor(renderer: WebGLRenderer);
|
|
5
|
-
|
|
6
|
-
generate(res?: number, distFunc?: string, bounds?: number): BufferGeometry;
|
|
7
|
-
|
|
8
|
-
computeSDF(
|
|
9
|
-
width: number,
|
|
10
|
-
height: number,
|
|
11
|
-
tilesX: number,
|
|
12
|
-
tilesY: number,
|
|
13
|
-
bounds: number,
|
|
14
|
-
shader: string,
|
|
15
|
-
): WebGLRenderTarget;
|
|
16
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Stats from "../libs/stats.module.js";
|
|
2
|
-
|
|
3
|
-
export class GPUStatsPanel extends Stats.Panel {
|
|
4
|
-
context: WebGLRenderingContext | WebGL2RenderingContext;
|
|
5
|
-
extension: unknown;
|
|
6
|
-
maxTime: number;
|
|
7
|
-
activeQueries: number;
|
|
8
|
-
startQuery: () => void;
|
|
9
|
-
endQuery: () => void;
|
|
10
|
-
|
|
11
|
-
constructor(context: WebGLRenderingContext | WebGL2RenderingContext, name?: string);
|
|
12
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `PackedPhongMaterial` inherited from THREE.MeshPhongMaterial
|
|
3
|
-
*
|
|
4
|
-
* @param {Object} parameters
|
|
5
|
-
*/
|
|
6
|
-
import { MeshPhongMaterial, MeshPhongMaterialParameters } from "three";
|
|
7
|
-
|
|
8
|
-
export class PackedPhongMaterial extends MeshPhongMaterial {
|
|
9
|
-
constructor(parameters: MeshPhongMaterialParameters);
|
|
10
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import Node from "../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
|
-
|
|
4
|
-
export type ViewportNodeScope =
|
|
5
|
-
| typeof ViewportNode.COORDINATE
|
|
6
|
-
| typeof ViewportNode.RESOLUTION
|
|
7
|
-
| typeof ViewportNode.VIEWPORT
|
|
8
|
-
| typeof ViewportNode.UV;
|
|
9
|
-
|
|
10
|
-
declare class ViewportNode extends Node {
|
|
11
|
-
scope: ViewportNodeScope;
|
|
12
|
-
|
|
13
|
-
readonly isViewportNode: true;
|
|
14
|
-
|
|
15
|
-
constructor(scope: ViewportNodeScope);
|
|
16
|
-
|
|
17
|
-
static COORDINATE: "coordinate";
|
|
18
|
-
static RESOLUTION: "resolution";
|
|
19
|
-
static VIEWPORT: "viewport";
|
|
20
|
-
static UV: "uv";
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export default ViewportNode;
|
|
24
|
-
|
|
25
|
-
export const viewportCoordinate: ShaderNodeObject<ViewportNode>;
|
|
26
|
-
export const viewportResolution: ShaderNodeObject<ViewportNode>;
|
|
27
|
-
export const viewport: ShaderNodeObject<ViewportNode>;
|
|
28
|
-
export const viewportUV: ShaderNodeObject<ViewportNode>;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated "viewportTopLeft" is deprecated. Use "viewportUV" instead.
|
|
32
|
-
*/
|
|
33
|
-
export const viewportTopLeft: ShaderNodeObject<ViewportNode>;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @deprecated "viewportBottomLeft" is deprecated. Use "viewportUV.flipY()" instead.
|
|
37
|
-
*/
|
|
38
|
-
export const viewportBottomLeft: ShaderNodeObject<ViewportNode>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import Node from "../core/Node.js";
|
|
2
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
|
-
|
|
4
|
-
export type OscNodeMethod =
|
|
5
|
-
| typeof OscNode.SINE
|
|
6
|
-
| typeof OscNode.SQUARE
|
|
7
|
-
| typeof OscNode.TRIANGLE
|
|
8
|
-
| typeof OscNode.SAWTOOTH;
|
|
9
|
-
|
|
10
|
-
export default class OscNode extends Node {
|
|
11
|
-
static SINE: "sine";
|
|
12
|
-
static SQUARE: "square";
|
|
13
|
-
static TRIANGLE: "triangle";
|
|
14
|
-
static SAWTOOTH: "sawtooth";
|
|
15
|
-
|
|
16
|
-
method: OscNodeMethod;
|
|
17
|
-
timeNode: Node;
|
|
18
|
-
|
|
19
|
-
constructor(method: OscNodeMethod, timeNode?: Node);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const oscSine: (timeNode?: NodeRepresentation) => ShaderNodeObject<OscNode>;
|
|
23
|
-
export const oscSquare: (timeNode?: NodeRepresentation) => ShaderNodeObject<OscNode>;
|
|
24
|
-
export const oscTriangle: (timeNode?: NodeRepresentation) => ShaderNodeObject<OscNode>;
|
|
25
|
-
export const oscSawtooth: (timeNode?: NodeRepresentation) => ShaderNodeObject<OscNode>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import UniformNode from "../core/UniformNode.js";
|
|
2
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
|
-
|
|
4
|
-
export type TimerNodeScope =
|
|
5
|
-
| typeof TimerNode.LOCAL
|
|
6
|
-
| typeof TimerNode.GLOBAL
|
|
7
|
-
| typeof TimerNode.DELTA
|
|
8
|
-
| typeof TimerNode.FRAME;
|
|
9
|
-
|
|
10
|
-
export default class TimerNode extends UniformNode<number> {
|
|
11
|
-
static LOCAL: "local";
|
|
12
|
-
static GLOBAL: "global";
|
|
13
|
-
static DELTA: "delta";
|
|
14
|
-
static FRAME: "frame";
|
|
15
|
-
|
|
16
|
-
scope: TimerNodeScope;
|
|
17
|
-
scale: number;
|
|
18
|
-
|
|
19
|
-
constructor(scope?: TimerNodeScope, scale?: number, value?: number);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const timerLocal: (timeScale?: number, value?: number) => ShaderNodeObject<TimerNode>;
|
|
23
|
-
export const timerGlobal: (timeScale?: number, value?: number) => ShaderNodeObject<TimerNode>;
|
|
24
|
-
export const timerDelta: (timeScale?: number, value?: number) => ShaderNodeObject<TimerNode>;
|
|
25
|
-
export const frameId: ShaderNodeObject<TimerNode>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Backend from "./Backend.js";
|
|
2
|
-
import Renderer, { RendererParameters } from "./Renderer.js";
|
|
3
|
-
|
|
4
|
-
export interface StandardRendererParameters extends RendererParameters {}
|
|
5
|
-
|
|
6
|
-
declare class StandardRenderer extends Renderer {
|
|
7
|
-
readonly isStandardRenderer: true;
|
|
8
|
-
|
|
9
|
-
constructor(backend: Backend, parameters?: StandardRendererParameters);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export default StandardRenderer;
|
|
File without changes
|