@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
three/src/constants.d.ts
CHANGED
|
@@ -697,23 +697,15 @@ export type NormalMapTypes = typeof TangentSpaceNormalMap | typeof ObjectSpaceNo
|
|
|
697
697
|
export const NoColorSpace: "";
|
|
698
698
|
export const SRGBColorSpace: "srgb";
|
|
699
699
|
export const LinearSRGBColorSpace: "srgb-linear";
|
|
700
|
-
export const DisplayP3ColorSpace: "display-p3";
|
|
701
|
-
export const LinearDisplayP3ColorSpace = "display-p3-linear";
|
|
702
700
|
export type ColorSpace =
|
|
703
701
|
| typeof NoColorSpace
|
|
704
702
|
| typeof SRGBColorSpace
|
|
705
|
-
| typeof LinearSRGBColorSpace
|
|
706
|
-
| typeof DisplayP3ColorSpace
|
|
707
|
-
| typeof LinearDisplayP3ColorSpace;
|
|
703
|
+
| typeof LinearSRGBColorSpace;
|
|
708
704
|
|
|
709
705
|
export const LinearTransfer: "linear";
|
|
710
706
|
export const SRGBTransfer: "srgb";
|
|
711
707
|
export type ColorSpaceTransfer = typeof LinearTransfer | typeof SRGBTransfer;
|
|
712
708
|
|
|
713
|
-
export const Rec709Primaries: "rec709";
|
|
714
|
-
export const P3Primaries: "p3";
|
|
715
|
-
export type ColorSpacePrimaries = typeof Rec709Primaries | typeof P3Primaries;
|
|
716
|
-
|
|
717
709
|
// Stencil Op types
|
|
718
710
|
export const ZeroStencilOp: 0;
|
|
719
711
|
export const KeepStencilOp: 7680;
|
|
@@ -4,6 +4,7 @@ import { Quaternion } from "../math/Quaternion.js";
|
|
|
4
4
|
import { Sphere } from "../math/Sphere.js";
|
|
5
5
|
import { Vector2 } from "../math/Vector2.js";
|
|
6
6
|
import { Vector3, Vector3Tuple } from "../math/Vector3.js";
|
|
7
|
+
import IndirectStorageBufferAttribute from "../renderers/common/IndirectStorageBufferAttribute.js";
|
|
7
8
|
import { BufferAttribute, BufferAttributeJSON } from "./BufferAttribute.js";
|
|
8
9
|
import { EventDispatcher } from "./EventDispatcher.js";
|
|
9
10
|
import { GLBufferAttribute } from "./GLBufferAttribute.js";
|
|
@@ -155,6 +156,8 @@ export class BufferGeometry<
|
|
|
155
156
|
*/
|
|
156
157
|
index: BufferAttribute | null;
|
|
157
158
|
|
|
159
|
+
indirect: IndirectStorageBufferAttribute | null;
|
|
160
|
+
|
|
158
161
|
/**
|
|
159
162
|
* This hashmap has as id the name of the attribute to be set and as value the {@link THREE.BufferAttribute | buffer} to set it to. Rather than accessing this property directly,
|
|
160
163
|
* use {@link setAttribute | .setAttribute} and {@link getAttribute | .getAttribute} to access attributes of this geometry.
|
|
@@ -233,6 +236,10 @@ export class BufferGeometry<
|
|
|
233
236
|
*/
|
|
234
237
|
setIndex(index: BufferAttribute | number[] | null): this;
|
|
235
238
|
|
|
239
|
+
setIndirect(indirect: IndirectStorageBufferAttribute | null): this;
|
|
240
|
+
|
|
241
|
+
getIndirect(): IndirectStorageBufferAttribute | null;
|
|
242
|
+
|
|
236
243
|
/**
|
|
237
244
|
* Sets an {@link attributes | attribute} to this geometry with the specified name.
|
|
238
245
|
* @remarks
|
|
@@ -352,8 +359,12 @@ export class BufferGeometry<
|
|
|
352
359
|
center(): this;
|
|
353
360
|
|
|
354
361
|
/**
|
|
355
|
-
*
|
|
356
|
-
* @
|
|
362
|
+
* Defines a geometry by creating a `position` attribute based on the given array of points. The array can hold
|
|
363
|
+
* instances of {@link Vector2} or {@link Vector3}. When using two-dimensional data, the `z` coordinate for all
|
|
364
|
+
* vertices is set to `0`.
|
|
365
|
+
*
|
|
366
|
+
* If the method is used with an existing `position` attribute, the vertex data are overwritten with the data from
|
|
367
|
+
* the array. The length of the array must match the vertex count.
|
|
357
368
|
*/
|
|
358
369
|
setFromPoints(points: Vector3[] | Vector2[]): this;
|
|
359
370
|
|
three/src/core/Clock.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Object for keeping track of time
|
|
3
|
-
* @
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* @see {@link https://threejs.org/docs/index.html#api/en/core/Clock | Official Documentation}
|
|
7
|
-
* @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/Clock.js | Source}
|
|
2
|
+
* Object for keeping track of time. This uses
|
|
3
|
+
* [performance.now]{@link https://developer.mozilla.org/en-US/docs/Web/API/Performance/now}.
|
|
4
|
+
* @see [Official Documentation]{@link https://threejs.org/docs/index.html#api/en/core/Clock}
|
|
5
|
+
* @see [Source]{@link https://github.com/mrdoob/three.js/blob/master/src/core/Clock.js}
|
|
8
6
|
*/
|
|
9
7
|
export class Clock {
|
|
10
8
|
/**
|
|
@@ -85,6 +85,18 @@ export class InterleavedBuffer {
|
|
|
85
85
|
*/
|
|
86
86
|
uuid: string;
|
|
87
87
|
|
|
88
|
+
/**
|
|
89
|
+
* A callback function that is executed after the Renderer has transferred the geometry data to the GPU.
|
|
90
|
+
*/
|
|
91
|
+
onUploadCallback: () => void;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Sets the value of the {@link onUploadCallback} property.
|
|
95
|
+
* @see {@link onUploadCallback}
|
|
96
|
+
* @param callback function that is executed after the Renderer has transferred the geometry data to the GPU.
|
|
97
|
+
*/
|
|
98
|
+
onUpload(callback: () => void): this;
|
|
99
|
+
|
|
88
100
|
/**
|
|
89
101
|
* Calls {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set | TypedArray.set}( {@link value}, {@link offset} )
|
|
90
102
|
* on the {@link BufferAttribute.array | array}.
|
three/src/core/RenderTarget.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
ColorSpace,
|
|
3
2
|
MagnificationTextureFilter,
|
|
4
3
|
MinificationTextureFilter,
|
|
5
4
|
PixelFormatGPU,
|
|
@@ -20,7 +19,7 @@ export interface RenderTargetOptions {
|
|
|
20
19
|
format?: number | undefined; // RGBAFormat
|
|
21
20
|
type?: TextureDataType | undefined; // UnsignedByteType
|
|
22
21
|
anisotropy?: number | undefined; // 1
|
|
23
|
-
colorSpace?:
|
|
22
|
+
colorSpace?: string | undefined;
|
|
24
23
|
internalFormat?: PixelFormatGPU | null | undefined; // null
|
|
25
24
|
depthBuffer?: boolean | undefined; // true
|
|
26
25
|
stencilBuffer?: boolean | undefined; // false
|
|
@@ -11,9 +11,9 @@ export class FileLoader extends Loader<string | ArrayBuffer> {
|
|
|
11
11
|
onError?: (err: unknown) => void,
|
|
12
12
|
): void;
|
|
13
13
|
|
|
14
|
-
mimeType:
|
|
15
|
-
responseType:
|
|
14
|
+
mimeType: string | undefined;
|
|
15
|
+
responseType: string | undefined;
|
|
16
16
|
|
|
17
|
-
setMimeType(mimeType:
|
|
17
|
+
setMimeType(mimeType: string): FileLoader;
|
|
18
18
|
setResponseType(responseType: string): FileLoader;
|
|
19
19
|
}
|
|
@@ -243,6 +243,12 @@ export class Material extends EventDispatcher<{ dispose: {} }> {
|
|
|
243
243
|
*/
|
|
244
244
|
readonly isMaterial: true;
|
|
245
245
|
|
|
246
|
+
/**
|
|
247
|
+
* Value is the string 'Material'. This shouldn't be changed, and can be used to find all objects of this type in a
|
|
248
|
+
* scene.
|
|
249
|
+
*/
|
|
250
|
+
type: string;
|
|
251
|
+
|
|
246
252
|
/**
|
|
247
253
|
* Enables alpha hashed transparency, an alternative to {@link .transparent} or {@link .alphaTest}. The material
|
|
248
254
|
* will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise,
|
|
@@ -509,12 +515,6 @@ export class Material extends EventDispatcher<{ dispose: {} }> {
|
|
|
509
515
|
*/
|
|
510
516
|
transparent: boolean;
|
|
511
517
|
|
|
512
|
-
/**
|
|
513
|
-
* Value is the string 'Material'. This shouldn't be changed, and can be used to find all objects of this type in a scene.
|
|
514
|
-
* @default 'Material'
|
|
515
|
-
*/
|
|
516
|
-
type: string;
|
|
517
|
-
|
|
518
518
|
/**
|
|
519
519
|
* UUID of this material instance. This gets automatically assigned, so this shouldn't be edited.
|
|
520
520
|
*/
|
|
@@ -3,6 +3,7 @@ import { LineDashedMaterialParameters } from "../LineDashedMaterial.js";
|
|
|
3
3
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
4
4
|
|
|
5
5
|
export interface LineDashedNodeMaterialParameters extends NodeMaterialParameters, LineDashedMaterialParameters {
|
|
6
|
+
dashOffset?: number | undefined;
|
|
6
7
|
offsetNode?: Node | null | undefined;
|
|
7
8
|
dashScaleNode?: Node | null | undefined;
|
|
8
9
|
dashSizeNode?: Node | null | undefined;
|
|
@@ -12,6 +13,8 @@ export interface LineDashedNodeMaterialParameters extends NodeMaterialParameters
|
|
|
12
13
|
declare class LineDashedNodeMaterial extends NodeMaterial {
|
|
13
14
|
readonly isLineDashedNodeMaterial: true;
|
|
14
15
|
|
|
16
|
+
dashOffset: number;
|
|
17
|
+
|
|
15
18
|
offsetNode: Node | null;
|
|
16
19
|
dashScaleNode: Node | null;
|
|
17
20
|
dashSizeNode: Node | null;
|
|
@@ -4,7 +4,7 @@ import { Texture } from "../../textures/Texture.js";
|
|
|
4
4
|
import { MeshNormalMaterialParameters } from "../MeshNormalMaterial.js";
|
|
5
5
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
6
6
|
|
|
7
|
-
export interface
|
|
7
|
+
export interface MeshNormalNodeMaterialParameters extends NodeMaterialParameters, MeshNormalMaterialParameters {
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export default class MeshNormalNodeMaterial extends NodeMaterial {
|
|
@@ -24,5 +24,5 @@ export default class MeshNormalNodeMaterial extends NodeMaterial {
|
|
|
24
24
|
wireframeLinewidth: number;
|
|
25
25
|
flatShading: boolean;
|
|
26
26
|
|
|
27
|
-
constructor(parameters?:
|
|
27
|
+
constructor(parameters?: MeshNormalNodeMaterialParameters);
|
|
28
28
|
}
|
|
@@ -24,6 +24,7 @@ export interface NodeMaterialParameters extends MaterialParameters {
|
|
|
24
24
|
alphaTestNode?: Node | null | undefined;
|
|
25
25
|
|
|
26
26
|
positionNode?: Node | null | undefined;
|
|
27
|
+
geometryNode?: Node | null | undefined;
|
|
27
28
|
|
|
28
29
|
depthNode?: Node | null | undefined;
|
|
29
30
|
shadowNode?: Node | null | undefined;
|
|
@@ -41,6 +42,7 @@ declare class NodeMaterial extends Material {
|
|
|
41
42
|
|
|
42
43
|
fog: boolean;
|
|
43
44
|
lights: boolean;
|
|
45
|
+
hardwareClipping: boolean;
|
|
44
46
|
|
|
45
47
|
lightsNode: LightsNode | null;
|
|
46
48
|
envNode: Node | null;
|
|
@@ -54,10 +56,12 @@ declare class NodeMaterial extends Material {
|
|
|
54
56
|
alphaTestNode: Node | null;
|
|
55
57
|
|
|
56
58
|
positionNode: Node | null;
|
|
59
|
+
geometryNode: Node | null;
|
|
57
60
|
|
|
58
61
|
depthNode: Node | null;
|
|
59
|
-
shadowNode: Node | null;
|
|
60
62
|
shadowPositionNode: Node | null;
|
|
63
|
+
receivedShadowNode: Node | null;
|
|
64
|
+
castShadowNode: Node | null;
|
|
61
65
|
|
|
62
66
|
outputNode: Node | null;
|
|
63
67
|
mrtNode: MRTNode | null;
|
|
@@ -70,6 +74,7 @@ declare class NodeMaterial extends Material {
|
|
|
70
74
|
build(builder: NodeBuilder): void;
|
|
71
75
|
setup(builder: NodeBuilder): void;
|
|
72
76
|
setupClipping(builder: NodeBuilder): ClippingNode | null;
|
|
77
|
+
setupHardwareClipping(builder: NodeBuilder): void;
|
|
73
78
|
setupDepth(builder: NodeBuilder): void;
|
|
74
79
|
setupPosition(builder: NodeBuilder): Node;
|
|
75
80
|
setupDiffuseColor(builder: NodeBuilder): void;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
1
|
+
export {
|
|
2
|
+
default as InstancedPointsNodeMaterial,
|
|
3
|
+
InstancedPointsNodeMaterialParameters,
|
|
4
|
+
} from "./InstancedPointsNodeMaterial.js";
|
|
5
|
+
export { default as Line2NodeMaterial, Line2NodeMaterialParameters } from "./Line2NodeMaterial.js";
|
|
6
|
+
export { default as LineBasicNodeMaterial, LineBasicNodeMaterialParameters } from "./LineBasicNodeMaterial.js";
|
|
7
|
+
export { default as LineDashedNodeMaterial, LineDashedNodeMaterialParameters } from "./LineDashedNodeMaterial.js";
|
|
8
|
+
export { default as MeshBasicNodeMaterial, MeshBasicNodeMaterialParameters } from "./MeshBasicNodeMaterial.js";
|
|
9
|
+
export { default as MeshLambertNodeMaterial, MeshLambertNodeMaterialParameters } from "./MeshLambertNodeMaterial.js";
|
|
10
|
+
export { default as MeshMatcapNodeMaterial, MeshMatcapNodeMaterialParameters } from "./MeshMatcapNodeMaterial.js";
|
|
11
|
+
export { default as MeshNormalNodeMaterial, MeshNormalNodeMaterialParameters } from "./MeshNormalNodeMaterial.js";
|
|
12
|
+
export { default as MeshPhongNodeMaterial, MeshPhongNodeMaterialParameters } from "./MeshPhongNodeMaterial.js";
|
|
13
|
+
export { default as MeshPhysicalNodeMaterial, MeshPhysicalNodeMaterialParameters } from "./MeshPhysicalNodeMaterial.js";
|
|
11
14
|
export { default as MeshSSSNodeMaterial } from "./MeshSSSNodeMaterial.js";
|
|
12
|
-
export { default as MeshStandardNodeMaterial } from "./MeshStandardNodeMaterial.js";
|
|
13
|
-
export { default as MeshToonNodeMaterial } from "./MeshToonNodeMaterial.js";
|
|
14
|
-
export { default as NodeMaterial } from "./NodeMaterial.js";
|
|
15
|
-
export { default as PointsNodeMaterial } from "./PointsNodeMaterial.js";
|
|
16
|
-
export { default as ShadowNodeMaterial } from "./ShadowNodeMaterial.js";
|
|
17
|
-
export { default as SpriteNodeMaterial } from "./SpriteNodeMaterial.js";
|
|
15
|
+
export { default as MeshStandardNodeMaterial, MeshStandardNodeMaterialParameters } from "./MeshStandardNodeMaterial.js";
|
|
16
|
+
export { default as MeshToonNodeMaterial, MeshToonNodeMaterialParameters } from "./MeshToonNodeMaterial.js";
|
|
17
|
+
export { default as NodeMaterial, NodeMaterialParameters } from "./NodeMaterial.js";
|
|
18
|
+
export { default as PointsNodeMaterial, PointsNodeMaterialParameters } from "./PointsNodeMaterial.js";
|
|
19
|
+
export { default as ShadowNodeMaterial, ShadowNodeMaterialParameters } from "./ShadowNodeMaterial.js";
|
|
20
|
+
export { default as SpriteNodeMaterial, SpriteNodeMaterialParameters } from "./SpriteNodeMaterial.js";
|
|
18
21
|
export { default as VolumeNodeMaterial } from "./VolumeNodeMaterial.js";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BufferAttribute } from "../../../core/BufferAttribute.js";
|
|
1
2
|
import { Matrix4 } from "../../../math/Matrix4.js";
|
|
2
3
|
import NodeBuilder from "../../../nodes/core/NodeBuilder.js";
|
|
3
4
|
import NodeFrame from "../../../nodes/core/NodeFrame.js";
|
|
@@ -59,8 +60,21 @@ type RefreshUniform = (typeof refreshUniforms)[number];
|
|
|
59
60
|
type MaterialData = {
|
|
60
61
|
[K in RefreshUniform]?: unknown;
|
|
61
62
|
};
|
|
63
|
+
interface AttributesData {
|
|
64
|
+
[name: string]: {
|
|
65
|
+
version: number;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
62
68
|
interface RenderObjectData {
|
|
63
69
|
material: MaterialData;
|
|
70
|
+
geometry: {
|
|
71
|
+
attributes: AttributesData;
|
|
72
|
+
indexVersion: number | null;
|
|
73
|
+
drawRange: {
|
|
74
|
+
start: number;
|
|
75
|
+
count: number;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
64
78
|
worldMatrix: Matrix4;
|
|
65
79
|
version?: number;
|
|
66
80
|
}
|
|
@@ -73,6 +87,7 @@ declare class NodeMaterialObserver {
|
|
|
73
87
|
constructor(builder: NodeBuilder);
|
|
74
88
|
firstInitialization(renderObject: RenderObject): boolean;
|
|
75
89
|
getRenderObjectData(renderObject: RenderObject): RenderObjectData;
|
|
90
|
+
getAttributesData(attributes: Record<string, BufferAttribute>): AttributesData;
|
|
76
91
|
containsNode(builder: NodeBuilder): boolean;
|
|
77
92
|
getMaterialData(material: Material): MaterialData;
|
|
78
93
|
equals(renderObject: RenderObject): boolean;
|