@types/three 0.184.1 → 0.185.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/examples/jsm/Addons.d.ts +2 -0
- three/examples/jsm/controls/FirstPersonControls.d.ts +9 -0
- three/examples/jsm/controls/OrbitControls.d.ts +2 -2
- three/examples/jsm/controls/TransformControls.d.ts +32 -1
- three/examples/jsm/csm/CSMFrustum.d.ts +73 -13
- three/examples/jsm/exporters/DRACOExporter.d.ts +1 -1
- three/examples/jsm/exporters/GLTFExporter.d.ts +2 -2
- three/examples/jsm/exporters/PLYExporter.d.ts +5 -4
- three/examples/jsm/exporters/USDZExporter.d.ts +5 -1
- three/examples/jsm/generators/CityGenerator.d.ts +75 -0
- three/examples/jsm/generators/ForestGenerator.d.ts +79 -0
- three/examples/jsm/generators/TerrainGenerator.d.ts +67 -0
- three/examples/jsm/generators/TreeGenerator.d.ts +97 -0
- three/examples/jsm/generators/city/SidewalkGenerator.d.ts +40 -0
- three/examples/jsm/generators/city/SkyscraperGenerator.d.ts +83 -0
- three/examples/jsm/geometries/LoftGeometry.d.ts +83 -0
- three/examples/jsm/inspector/tabs/Parameters.d.ts +5 -2
- three/examples/jsm/lighting/ClusteredLighting.d.ts +45 -0
- three/examples/jsm/lighting/LightProbeGrid.d.ts +131 -13
- three/examples/jsm/loaders/DRACOLoader.d.ts +20 -6
- three/examples/jsm/loaders/EXRLoader.d.ts +2 -12
- three/examples/jsm/loaders/GLTFLoader.d.ts +1 -1
- three/examples/jsm/loaders/HDRLoader.d.ts +2 -12
- three/examples/jsm/loaders/KTX2Loader.d.ts +1 -1
- three/examples/jsm/loaders/LWOLoader.d.ts +6 -0
- three/examples/jsm/loaders/RGBELoader.d.ts +1 -7
- three/examples/jsm/loaders/SVGLoader.d.ts +9 -6
- three/examples/jsm/loaders/TGALoader.d.ts +2 -2
- three/examples/jsm/loaders/TIFFLoader.d.ts +2 -11
- three/examples/jsm/loaders/USDLoader.d.ts +6 -1
- three/examples/jsm/misc/TileCreasedNormalsPlugin.d.ts +49 -0
- three/examples/jsm/objects/MarchingCubes.d.ts +2 -2
- three/examples/jsm/objects/Reflector.d.ts +38 -5
- three/examples/jsm/objects/SkyMesh.d.ts +1 -1
- three/examples/jsm/physics/RapierPhysics.d.ts +1 -0
- three/examples/jsm/tsl/display/BloomNode.d.ts +23 -6
- three/examples/jsm/tsl/display/ImportanceSampledEnvironment.d.ts +84 -0
- three/examples/jsm/tsl/display/RecurrentDenoiseNode.d.ts +89 -0
- three/examples/jsm/tsl/display/SSAAPassNode.d.ts +0 -2
- three/examples/jsm/tsl/display/SSGINode.d.ts +4 -1
- three/examples/jsm/tsl/display/SSRNode.d.ts +303 -30
- three/examples/jsm/tsl/display/TRAANode.d.ts +1 -1
- three/examples/jsm/tsl/display/TemporalReprojectNode.d.ts +64 -0
- three/examples/jsm/tsl/lighting/ClusteredLightsNode.d.ts +54 -0
- three/examples/jsm/tsl/math/curlNoise.d.ts +38 -0
- three/examples/jsm/tsl/utils/GroundedSkybox.d.ts +17 -0
- three/examples/jsm/tsl/utils/RNoise.d.ts +12 -0
- three/examples/jsm/tsl/utils/SpecularHelpers.d.ts +20 -0
- three/examples/jsm/webxr/WebGLXRFallback.d.ts +14 -0
- three/package.json +3 -3
- three/src/Three.TSL.d.ts +10 -3
- three/src/Three.WebGPU.Nodes.d.ts +2 -2
- three/src/Three.WebGPU.d.ts +5 -3
- three/src/animation/AnimationClip.d.ts +0 -10
- three/src/cameras/Camera.d.ts +1 -1
- three/src/core/InterleavedBuffer.d.ts +1 -1
- three/src/core/Object3D.d.ts +8 -4
- three/src/core/RenderTarget.d.ts +11 -0
- three/src/core/Timer.d.ts +1 -1
- three/src/core/UniformsGroup.d.ts +1 -1
- three/src/extras/Controls.d.ts +6 -5
- three/src/extras/core/ShapePath.d.ts +61 -65
- three/src/loaders/DataTextureLoader.d.ts +37 -3
- three/src/loaders/MaterialLoader.d.ts +8 -0
- three/src/materials/LineBasicMaterial.d.ts +5 -0
- three/src/materials/Material.d.ts +9 -1
- three/src/materials/MeshBasicMaterial.d.ts +30 -0
- three/src/materials/MeshDepthMaterial.d.ts +13 -0
- three/src/materials/MeshDistanceMaterial.d.ts +13 -0
- three/src/materials/MeshLambertMaterial.d.ts +50 -1
- three/src/materials/MeshMatcapMaterial.d.ts +31 -1
- three/src/materials/MeshNormalMaterial.d.ts +11 -1
- three/src/materials/MeshPhongMaterial.d.ts +50 -1
- three/src/materials/MeshPhysicalMaterial.d.ts +50 -0
- three/src/materials/MeshStandardMaterial.d.ts +53 -1
- three/src/materials/MeshToonMaterial.d.ts +43 -1
- three/src/materials/PointsMaterial.d.ts +9 -0
- three/src/materials/ShaderMaterial.d.ts +2 -0
- three/src/materials/SpriteMaterial.d.ts +9 -0
- three/src/materials/nodes/Line2NodeMaterial.d.ts +18 -13
- three/src/materials/nodes/NodeMaterial.d.ts +33 -13
- three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +0 -84
- three/src/math/Box2.d.ts +3 -3
- three/src/math/Box3.d.ts +255 -19
- three/src/math/Color.d.ts +10 -10
- three/src/math/FrustumArray.d.ts +75 -16
- three/src/math/Interpolant.d.ts +111 -8
- three/src/math/Matrix3.d.ts +9 -0
- three/src/math/Matrix4.d.ts +329 -105
- three/src/math/Vector3.d.ts +2 -2
- three/src/math/interpolants/BezierInterpolant.d.ts +19 -3
- three/src/math/interpolants/CubicInterpolant.d.ts +18 -3
- three/src/math/interpolants/DiscreteInterpolant.d.ts +8 -3
- three/src/math/interpolants/LinearInterpolant.d.ts +7 -3
- three/src/math/interpolants/QuaternionLinearInterpolant.d.ts +7 -3
- three/src/nodes/Nodes.d.ts +4 -13
- three/src/nodes/TSL.d.ts +7 -5
- three/src/nodes/accessors/Batch.d.ts +19 -0
- three/src/nodes/accessors/Instance.d.ts +34 -0
- three/src/nodes/accessors/MaterialNode.d.ts +86 -79
- three/src/nodes/accessors/Morph.d.ts +11 -0
- three/src/nodes/accessors/Skinning.d.ts +23 -0
- three/src/nodes/accessors/StorageBufferNode.d.ts +22 -23
- three/src/nodes/accessors/StorageTexture3DNode.d.ts +17 -0
- three/src/nodes/accessors/StorageTextureNode.d.ts +6 -4
- three/src/nodes/accessors/TextureNode.d.ts +15 -10
- three/src/nodes/core/ArrayNode.d.ts +16 -8
- three/src/nodes/core/ContextNode.d.ts +5 -6
- three/src/nodes/core/LightingModel.d.ts +2 -0
- three/src/nodes/core/Node.d.ts +50 -51
- three/src/nodes/core/NodeBuilder.d.ts +1 -133
- three/src/nodes/core/OverrideContextNode.d.ts +92 -0
- three/src/nodes/core/PropertyNode.d.ts +13 -2
- three/src/nodes/core/StructNode.d.ts +0 -2
- three/src/nodes/core/StructTypeNode.d.ts +5 -4
- three/src/nodes/core/UniformNode.d.ts +48 -9
- three/src/nodes/display/BlendModes.d.ts +72 -11
- three/src/nodes/display/FrontFacingNode.d.ts +62 -3
- three/src/nodes/display/PassNode.d.ts +0 -2
- three/src/nodes/display/PremultiplyAlphaFunctions.d.ts +37 -0
- three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +53 -45
- three/src/nodes/lighting/LightingContextNode.d.ts +9 -2
- three/src/nodes/lighting/LightsNode.d.ts +4 -4
- three/src/nodes/math/MathNode.d.ts +358 -304
- three/src/nodes/math/OperatorNode.d.ts +253 -82
- three/src/nodes/tsl/TSLCore.d.ts +16 -9
- three/src/nodes/utils/ArrayElementNode.d.ts +5 -4
- three/src/nodes/utils/EquirectUV.d.ts +31 -1
- three/src/nodes/utils/Packing.d.ts +50 -3
- three/src/nodes/utils/RTTNode.d.ts +7 -12
- three/src/nodes/utils/Remap.d.ts +216 -29
- three/src/nodes/utils/SampleNode.d.ts +18 -8
- three/src/objects/BatchedMesh.d.ts +1 -1
- three/src/objects/InstancedMesh.d.ts +0 -8
- three/src/objects/Skeleton.d.ts +0 -2
- three/src/renderers/common/Backend.d.ts +0 -3
- three/src/renderers/common/CanvasTarget.d.ts +0 -49
- three/src/renderers/common/ClippingContext.d.ts +6 -1
- three/src/renderers/common/CubeRenderTarget.d.ts +2 -1
- three/src/renderers/common/Info.d.ts +26 -66
- three/src/renderers/common/InspectorBase.d.ts +0 -7
- three/src/renderers/common/Lighting.d.ts +49 -5
- three/src/renderers/common/Renderer.d.ts +34 -458
- three/src/renderers/common/RendererUtils.d.ts +1 -2
- three/src/renderers/common/TimestampQueryPool.d.ts +1 -1
- three/src/renderers/common/XRManager.d.ts +32 -299
- three/src/renderers/common/nodes/NodeLibrary.d.ts +0 -117
- three/src/renderers/webgl/WebGLPrograms.d.ts +2 -0
- three/src/renderers/webgl/WebGLRenderLists.d.ts +5 -1
- three/src/renderers/webgl/WebGLState.d.ts +2 -0
- three/src/renderers/webgl-fallback/WebGLBackend.d.ts +1 -1
- three/src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.d.ts +0 -10
- three/src/renderers/webgpu/nodes/StandardNodeLibrary.d.ts +0 -1
- three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +5 -121
- three/src/textures/CubeDepthTexture.d.ts +2 -3
- three/src/textures/DataTexture.d.ts +2 -1
- three/src/textures/DepthTexture.d.ts +5 -5
- three/examples/jsm/lighting/TiledLighting.d.ts +0 -9
- three/examples/jsm/tsl/display/AnamorphicNode.d.ts +0 -31
- three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +0 -22
- three/src/nodes/accessors/BatchNode.d.ts +0 -12
- three/src/nodes/accessors/InstanceNode.d.ts +0 -30
- three/src/nodes/accessors/InstancedMeshNode.d.ts +0 -10
- three/src/nodes/accessors/MorphNode.d.ts +0 -14
- three/src/nodes/accessors/SkinningNode.d.ts +0 -32
- three/src/renderers/common/Animation.d.ts +0 -102
- three/src/renderers/common/Attributes.d.ts +0 -59
- three/src/renderers/common/Background.d.ts +0 -47
- three/src/renderers/common/BindGroup.d.ts +0 -39
- three/src/renderers/common/Binding.d.ts +0 -50
- three/src/renderers/common/Bindings.d.ts +0 -132
- three/src/renderers/common/Buffer.d.ts +0 -90
- three/src/renderers/common/ChainMap.d.ts +0 -49
- three/src/renderers/common/Color4.d.ts +0 -55
- three/src/renderers/common/ComputePipeline.d.ts +0 -34
- three/src/renderers/common/DataMap.d.ts +0 -42
- three/src/renderers/common/Geometries.d.ts +0 -111
- three/src/renderers/common/Pipeline.d.ts +0 -29
- three/src/renderers/common/Pipelines.d.ts +0 -186
- three/src/renderers/common/ProgrammableStage.d.ts +0 -73
- three/src/renderers/common/RenderBundle.d.ts +0 -25
- three/src/renderers/common/RenderBundles.d.ts +0 -34
- three/src/renderers/common/RenderContext.d.ts +0 -235
- three/src/renderers/common/RenderContexts.d.ts +0 -47
- three/src/renderers/common/RenderList.d.ts +0 -226
- three/src/renderers/common/RenderLists.d.ts +0 -46
- three/src/renderers/common/RenderObject.d.ts +0 -448
- three/src/renderers/common/RenderObjectPipeline.d.ts +0 -33
- three/src/renderers/common/RenderObjects.d.ts +0 -151
- three/src/renderers/common/SampledTexture.d.ts +0 -28
- three/src/renderers/common/Sampler.d.ts +0 -19
- three/src/renderers/common/Textures.d.ts +0 -125
- three/src/renderers/common/Uniform.d.ts +0 -262
- three/src/renderers/common/UniformBuffer.d.ts +0 -20
- three/src/renderers/common/UniformsGroup.d.ts +0 -152
- three/src/renderers/common/XRRenderTarget.d.ts +0 -67
- three/src/renderers/common/nodes/NodeBuilderState.d.ts +0 -121
- three/src/renderers/common/nodes/NodeManager.d.ts +0 -309
- three/src/renderers/common/nodes/NodeSampledTexture.d.ts +0 -29
- three/src/renderers/common/nodes/NodeSampler.d.ts +0 -12
- three/src/renderers/common/nodes/NodeUniform.d.ts +0 -250
- three/src/renderers/common/nodes/NodeUniformsGroup.d.ts +0 -41
- three/src/renderers/webgpu/nodes/WGSLNodeFunction.d.ts +0 -6
- three/src/renderers/webgpu/nodes/WGSLNodeParser.d.ts +0 -6
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
import { Color } from "../../../math/Color.js";
|
|
2
|
-
import { Matrix2 } from "../../../math/Matrix2.js";
|
|
3
|
-
import { Matrix3 } from "../../../math/Matrix3.js";
|
|
4
|
-
import { Matrix4 } from "../../../math/Matrix4.js";
|
|
5
|
-
import { Vector2 } from "../../../math/Vector2.js";
|
|
6
|
-
import { Vector3 } from "../../../math/Vector3.js";
|
|
7
|
-
import { Vector4 } from "../../../math/Vector4.js";
|
|
8
|
-
import NodeUniform from "../../../nodes/core/NodeUniform.js";
|
|
9
|
-
import {
|
|
10
|
-
ColorUniform,
|
|
11
|
-
Matrix2Uniform,
|
|
12
|
-
Matrix3Uniform,
|
|
13
|
-
Matrix4Uniform,
|
|
14
|
-
NumberUniform,
|
|
15
|
-
Vector2Uniform,
|
|
16
|
-
Vector3Uniform,
|
|
17
|
-
Vector4Uniform,
|
|
18
|
-
} from "../Uniform.js";
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* A special form of Number uniform binding type.
|
|
22
|
-
* It's value is managed by a node object.
|
|
23
|
-
*
|
|
24
|
-
* @private
|
|
25
|
-
* @augments NumberUniform
|
|
26
|
-
*/
|
|
27
|
-
export class NumberNodeUniform<TNodeType> extends NumberUniform {
|
|
28
|
-
/**
|
|
29
|
-
* Constructs a new node-based Number uniform.
|
|
30
|
-
*
|
|
31
|
-
* @param {NodeUniform} nodeUniform - The node uniform.
|
|
32
|
-
*/
|
|
33
|
-
constructor(nodeUniform: NodeUniform<TNodeType, number>);
|
|
34
|
-
/**
|
|
35
|
-
* The node uniform.
|
|
36
|
-
*
|
|
37
|
-
* @type {NodeUniform}
|
|
38
|
-
*/
|
|
39
|
-
nodeUniform: NodeUniform<TNodeType, number>;
|
|
40
|
-
/**
|
|
41
|
-
* Overwritten to return the value of the node uniform.
|
|
42
|
-
*
|
|
43
|
-
* @return {number} The value.
|
|
44
|
-
*/
|
|
45
|
-
getValue(): number;
|
|
46
|
-
/**
|
|
47
|
-
* Returns the node uniform data type.
|
|
48
|
-
*
|
|
49
|
-
* @return {string} The data type.
|
|
50
|
-
*/
|
|
51
|
-
getType(): string;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* A special form of Vector2 uniform binding type.
|
|
55
|
-
* It's value is managed by a node object.
|
|
56
|
-
*
|
|
57
|
-
* @private
|
|
58
|
-
* @augments Vector2Uniform
|
|
59
|
-
*/
|
|
60
|
-
export class Vector2NodeUniform<TNodeType> extends Vector2Uniform {
|
|
61
|
-
/**
|
|
62
|
-
* Constructs a new node-based Vector2 uniform.
|
|
63
|
-
*
|
|
64
|
-
* @param {NodeUniform} nodeUniform - The node uniform.
|
|
65
|
-
*/
|
|
66
|
-
constructor(nodeUniform: NodeUniform<TNodeType, Vector2>);
|
|
67
|
-
/**
|
|
68
|
-
* The node uniform.
|
|
69
|
-
*
|
|
70
|
-
* @type {NodeUniform}
|
|
71
|
-
*/
|
|
72
|
-
nodeUniform: NodeUniform<TNodeType, Vector2>;
|
|
73
|
-
/**
|
|
74
|
-
* Returns the node uniform data type.
|
|
75
|
-
*
|
|
76
|
-
* @return {string} The data type.
|
|
77
|
-
*/
|
|
78
|
-
getType(): string;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* A special form of Vector3 uniform binding type.
|
|
82
|
-
* It's value is managed by a node object.
|
|
83
|
-
*
|
|
84
|
-
* @private
|
|
85
|
-
* @augments Vector3Uniform
|
|
86
|
-
*/
|
|
87
|
-
export class Vector3NodeUniform<TNodeType> extends Vector3Uniform {
|
|
88
|
-
/**
|
|
89
|
-
* Constructs a new node-based Vector3 uniform.
|
|
90
|
-
*
|
|
91
|
-
* @param {NodeUniform} nodeUniform - The node uniform.
|
|
92
|
-
*/
|
|
93
|
-
constructor(nodeUniform: NodeUniform<TNodeType, Vector3>);
|
|
94
|
-
/**
|
|
95
|
-
* The node uniform.
|
|
96
|
-
*
|
|
97
|
-
* @type {NodeUniform}
|
|
98
|
-
*/
|
|
99
|
-
nodeUniform: NodeUniform<TNodeType, Vector3>;
|
|
100
|
-
/**
|
|
101
|
-
* Returns the node uniform data type.
|
|
102
|
-
*
|
|
103
|
-
* @return {string} The data type.
|
|
104
|
-
*/
|
|
105
|
-
getType(): string;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* A special form of Vector4 uniform binding type.
|
|
109
|
-
* It's value is managed by a node object.
|
|
110
|
-
*
|
|
111
|
-
* @private
|
|
112
|
-
* @augments Vector4Uniform
|
|
113
|
-
*/
|
|
114
|
-
export class Vector4NodeUniform<TNodeType> extends Vector4Uniform {
|
|
115
|
-
/**
|
|
116
|
-
* Constructs a new node-based Vector4 uniform.
|
|
117
|
-
*
|
|
118
|
-
* @param {NodeUniform} nodeUniform - The node uniform.
|
|
119
|
-
*/
|
|
120
|
-
constructor(nodeUniform: NodeUniform<TNodeType, Vector4>);
|
|
121
|
-
/**
|
|
122
|
-
* The node uniform.
|
|
123
|
-
*
|
|
124
|
-
* @type {NodeUniform}
|
|
125
|
-
*/
|
|
126
|
-
nodeUniform: NodeUniform<TNodeType, Vector4>;
|
|
127
|
-
/**
|
|
128
|
-
* Returns the node uniform data type.
|
|
129
|
-
*
|
|
130
|
-
* @return {string} The data type.
|
|
131
|
-
*/
|
|
132
|
-
getType(): string;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* A special form of Color uniform binding type.
|
|
136
|
-
* It's value is managed by a node object.
|
|
137
|
-
*
|
|
138
|
-
* @private
|
|
139
|
-
* @augments ColorUniform
|
|
140
|
-
*/
|
|
141
|
-
export class ColorNodeUniform<TNodeType> extends ColorUniform {
|
|
142
|
-
/**
|
|
143
|
-
* Constructs a new node-based Color uniform.
|
|
144
|
-
*
|
|
145
|
-
* @param {NodeUniform} nodeUniform - The node uniform.
|
|
146
|
-
*/
|
|
147
|
-
constructor(nodeUniform: NodeUniform<TNodeType, Color>);
|
|
148
|
-
/**
|
|
149
|
-
* The node uniform.
|
|
150
|
-
*
|
|
151
|
-
* @type {NodeUniform}
|
|
152
|
-
*/
|
|
153
|
-
nodeUniform: NodeUniform<TNodeType, Color>;
|
|
154
|
-
/**
|
|
155
|
-
* Returns the node uniform data type.
|
|
156
|
-
*
|
|
157
|
-
* @return {string} The data type.
|
|
158
|
-
*/
|
|
159
|
-
getType(): string;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* A special form of Matrix2 uniform binding type.
|
|
163
|
-
* It's value is managed by a node object.
|
|
164
|
-
*
|
|
165
|
-
* @private
|
|
166
|
-
* @augments Matrix2Uniform
|
|
167
|
-
*/
|
|
168
|
-
export class Matrix2NodeUniform<TNodeType> extends Matrix2Uniform {
|
|
169
|
-
/**
|
|
170
|
-
* Constructs a new node-based Matrix2 uniform.
|
|
171
|
-
*
|
|
172
|
-
* @param {NodeUniform} nodeUniform - The node uniform.
|
|
173
|
-
*/
|
|
174
|
-
constructor(nodeUniform: NodeUniform<TNodeType, Matrix2>);
|
|
175
|
-
/**
|
|
176
|
-
* The node uniform.
|
|
177
|
-
*
|
|
178
|
-
* @type {NodeUniform}
|
|
179
|
-
*/
|
|
180
|
-
nodeUniform: NodeUniform<TNodeType, Matrix2>;
|
|
181
|
-
/**
|
|
182
|
-
* Returns the node uniform data type.
|
|
183
|
-
*
|
|
184
|
-
* @return {string} The data type.
|
|
185
|
-
*/
|
|
186
|
-
getType(): string;
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* A special form of Matrix3 uniform binding type.
|
|
190
|
-
* It's value is managed by a node object.
|
|
191
|
-
*
|
|
192
|
-
* @private
|
|
193
|
-
* @augments Matrix3Uniform
|
|
194
|
-
*/
|
|
195
|
-
export class Matrix3NodeUniform<TNodeType> extends Matrix3Uniform {
|
|
196
|
-
/**
|
|
197
|
-
* Constructs a new node-based Matrix3 uniform.
|
|
198
|
-
*
|
|
199
|
-
* @param {NodeUniform} nodeUniform - The node uniform.
|
|
200
|
-
*/
|
|
201
|
-
constructor(nodeUniform: NodeUniform<TNodeType, Matrix3>);
|
|
202
|
-
/**
|
|
203
|
-
* The node uniform.
|
|
204
|
-
*
|
|
205
|
-
* @type {NodeUniform}
|
|
206
|
-
*/
|
|
207
|
-
nodeUniform: NodeUniform<TNodeType, Matrix3>;
|
|
208
|
-
/**
|
|
209
|
-
* Returns the node uniform data type.
|
|
210
|
-
*
|
|
211
|
-
* @return {string} The data type.
|
|
212
|
-
*/
|
|
213
|
-
getType(): string;
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* A special form of Matrix4 uniform binding type.
|
|
217
|
-
* It's value is managed by a node object.
|
|
218
|
-
*
|
|
219
|
-
* @private
|
|
220
|
-
* @augments Matrix4Uniform
|
|
221
|
-
*/
|
|
222
|
-
export class Matrix4NodeUniform<TNodeType> extends Matrix4Uniform {
|
|
223
|
-
/**
|
|
224
|
-
* Constructs a new node-based Matrix4 uniform.
|
|
225
|
-
*
|
|
226
|
-
* @param {NodeUniform} nodeUniform - The node uniform.
|
|
227
|
-
*/
|
|
228
|
-
constructor(nodeUniform: NodeUniform<TNodeType, Matrix4>);
|
|
229
|
-
/**
|
|
230
|
-
* The node uniform.
|
|
231
|
-
*
|
|
232
|
-
* @type {NodeUniform}
|
|
233
|
-
*/
|
|
234
|
-
nodeUniform: NodeUniform<TNodeType, Matrix4>;
|
|
235
|
-
/**
|
|
236
|
-
* Returns the node uniform data type.
|
|
237
|
-
*
|
|
238
|
-
* @return {string} The data type.
|
|
239
|
-
*/
|
|
240
|
-
getType(): string;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
export type NodeUniformGPU =
|
|
244
|
-
| NumberNodeUniform<unknown>
|
|
245
|
-
| Vector2NodeUniform<unknown>
|
|
246
|
-
| Vector3NodeUniform<unknown>
|
|
247
|
-
| Vector4NodeUniform<unknown>
|
|
248
|
-
| ColorNodeUniform<unknown>
|
|
249
|
-
| Matrix3NodeUniform<unknown>
|
|
250
|
-
| Matrix4NodeUniform<unknown>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import UniformGroupNode from "../../../nodes/core/UniformGroupNode.js";
|
|
2
|
-
import UniformsGroup from "../UniformsGroup.js";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* A special form of uniforms group that represents
|
|
6
|
-
* the individual uniforms as node-based uniforms.
|
|
7
|
-
*
|
|
8
|
-
* @private
|
|
9
|
-
* @augments UniformsGroup
|
|
10
|
-
*/
|
|
11
|
-
declare class NodeUniformsGroup extends UniformsGroup {
|
|
12
|
-
/**
|
|
13
|
-
* Constructs a new node-based uniforms group.
|
|
14
|
-
*
|
|
15
|
-
* @param {string} name - The group's name.
|
|
16
|
-
* @param {UniformGroupNode} groupNode - The uniform group node.
|
|
17
|
-
*/
|
|
18
|
-
constructor(name: string, groupNode: UniformGroupNode);
|
|
19
|
-
/**
|
|
20
|
-
* The group's ID.
|
|
21
|
-
*
|
|
22
|
-
* @type {number}
|
|
23
|
-
*/
|
|
24
|
-
id: number;
|
|
25
|
-
/**
|
|
26
|
-
* The uniform group node.
|
|
27
|
-
*
|
|
28
|
-
* @type {UniformGroupNode}
|
|
29
|
-
*/
|
|
30
|
-
groupNode: UniformGroupNode;
|
|
31
|
-
/**
|
|
32
|
-
* This flag can be used for type testing.
|
|
33
|
-
*
|
|
34
|
-
* @type {boolean}
|
|
35
|
-
* @readonly
|
|
36
|
-
* @default true
|
|
37
|
-
*/
|
|
38
|
-
readonly isNodeUniformsGroup: boolean;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export default NodeUniformsGroup;
|