@types/three 0.177.0 → 0.178.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/capabilities/WebGL.d.ts +0 -11
- three/examples/jsm/controls/TransformControls.d.ts +16 -1
- three/examples/jsm/helpers/TextureHelper.d.ts +2 -2
- three/examples/jsm/helpers/TextureHelperGPU.d.ts +2 -2
- three/examples/jsm/loaders/SVGLoader.d.ts +1 -1
- three/examples/jsm/physics/RapierPhysics.d.ts +1 -0
- three/examples/jsm/transpiler/AST.d.ts +77 -26
- three/examples/jsm/transpiler/TSLEncoder.d.ts +9 -3
- three/examples/jsm/tsl/display/AnamorphicNode.d.ts +4 -4
- three/examples/jsm/tsl/display/BleachBypass.d.ts +2 -2
- three/examples/jsm/tsl/display/BloomNode.d.ts +2 -2
- three/examples/jsm/tsl/display/ChromaticAberrationNode.d.ts +20 -0
- three/examples/jsm/tsl/display/DenoiseNode.d.ts +4 -4
- three/examples/jsm/tsl/display/DepthOfFieldNode.d.ts +6 -6
- three/examples/jsm/tsl/display/DotScreenNode.d.ts +2 -2
- three/examples/jsm/tsl/display/FXAANode.d.ts +3 -3
- three/examples/jsm/tsl/display/FilmNode.d.ts +4 -4
- three/examples/jsm/tsl/display/GTAONode.d.ts +3 -3
- three/examples/jsm/tsl/display/GaussianBlurNode.d.ts +5 -5
- three/examples/jsm/tsl/display/LensflareNode.d.ts +8 -8
- three/examples/jsm/tsl/display/Lut3DNode.d.ts +4 -4
- three/examples/jsm/tsl/display/MotionBlur.d.ts +4 -4
- three/examples/jsm/tsl/display/OutlineNode.d.ts +3 -3
- three/examples/jsm/tsl/display/RGBShiftNode.d.ts +3 -3
- three/examples/jsm/tsl/display/SMAANode.d.ts +3 -3
- three/examples/jsm/tsl/display/SSRNode.d.ts +5 -5
- three/examples/jsm/tsl/display/Sepia.d.ts +2 -2
- three/examples/jsm/tsl/display/SobelOperatorNode.d.ts +3 -3
- three/examples/jsm/tsl/display/TransitionNode.d.ts +4 -4
- three/examples/jsm/tsl/display/hashBlur.d.ts +5 -5
- three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +5 -5
- three/package.json +2 -2
- three/src/Three.TSL.d.ts +9 -16
- three/src/Three.WebGPU.d.ts +2 -0
- three/src/constants.d.ts +13 -5
- three/src/core/BufferGeometry.d.ts +6 -1
- three/src/core/GLBufferAttribute.d.ts +18 -1
- three/src/helpers/AxesHelper.d.ts +3 -1
- three/src/materials/LineBasicMaterial.d.ts +66 -34
- three/src/materials/LineDashedMaterial.d.ts +41 -21
- three/src/materials/Material.d.ts +408 -398
- three/src/materials/MeshBasicMaterial.d.ts +101 -62
- three/src/materials/MeshDepthMaterial.d.ts +71 -32
- three/src/materials/MeshDistanceMaterial.d.ts +65 -29
- three/src/materials/MeshLambertMaterial.d.ts +179 -103
- three/src/materials/MeshMatcapMaterial.d.ts +97 -55
- three/src/materials/MeshNormalMaterial.d.ts +76 -41
- three/src/materials/MeshPhongMaterial.d.ts +164 -100
- three/src/materials/MeshPhysicalMaterial.d.ts +164 -116
- three/src/materials/MeshStandardMaterial.d.ts +178 -91
- three/src/materials/MeshToonMaterial.d.ts +130 -81
- three/src/materials/PointsMaterial.d.ts +77 -30
- three/src/materials/RawShaderMaterial.d.ts +12 -7
- three/src/materials/ShaderMaterial.d.ts +186 -98
- three/src/materials/ShadowMaterial.d.ts +49 -23
- three/src/materials/SpriteMaterial.d.ts +62 -33
- three/src/materials/nodes/Line2NodeMaterial.d.ts +87 -40
- three/src/materials/nodes/LineBasicNodeMaterial.d.ts +35 -16
- three/src/materials/nodes/LineDashedNodeMaterial.d.ts +75 -20
- three/src/materials/nodes/MeshBasicNodeMaterial.d.ts +49 -30
- three/src/materials/nodes/MeshLambertNodeMaterial.d.ts +49 -42
- three/src/materials/nodes/MeshMatcapNodeMaterial.d.ts +38 -26
- three/src/materials/nodes/MeshNormalNodeMaterial.d.ts +36 -22
- three/src/materials/nodes/MeshPhongNodeMaterial.d.ts +68 -48
- three/src/materials/nodes/MeshPhysicalNodeMaterial.d.ts +240 -65
- three/src/materials/nodes/MeshSSSNodeMaterial.d.ts +99 -3
- three/src/materials/nodes/MeshStandardNodeMaterial.d.ts +83 -47
- three/src/materials/nodes/MeshToonNodeMaterial.d.ts +42 -36
- three/src/materials/nodes/NodeMaterial.d.ts +417 -56
- three/src/materials/nodes/NodeMaterials.d.ts +3 -2
- three/src/materials/nodes/PointsNodeMaterial.d.ts +31 -7
- three/src/materials/nodes/ShadowNodeMaterial.d.ts +38 -11
- three/src/materials/nodes/SpriteNodeMaterial.d.ts +68 -20
- three/src/materials/nodes/VolumeNodeMaterial.d.ts +50 -14
- three/src/math/Color.d.ts +1 -1
- three/src/nodes/Nodes.d.ts +1 -3
- three/src/nodes/TSL.d.ts +4 -3
- three/src/nodes/accessors/AccessorsUtils.d.ts +3 -3
- three/src/nodes/accessors/Bitangent.d.ts +0 -2
- three/src/nodes/accessors/CubeTextureNode.d.ts +7 -7
- three/src/nodes/accessors/Normal.d.ts +19 -5
- three/src/nodes/accessors/ReferenceBaseNode.d.ts +1 -1
- three/src/nodes/accessors/StorageBufferNode.d.ts +3 -2
- three/src/nodes/accessors/StorageTextureNode.d.ts +5 -5
- three/src/nodes/accessors/Tangent.d.ts +0 -2
- three/src/nodes/accessors/TangentUtils.d.ts +22 -0
- three/src/nodes/accessors/Texture3DNode.d.ts +5 -4
- three/src/nodes/accessors/TextureBicubic.d.ts +4 -2
- three/src/nodes/accessors/TextureNode.d.ts +16 -16
- three/src/nodes/accessors/TextureSizeNode.d.ts +3 -3
- three/src/nodes/accessors/UniformArrayNode.d.ts +2 -7
- three/src/nodes/code/FunctionCallNode.d.ts +3 -1
- three/src/nodes/code/FunctionNode.d.ts +2 -2
- three/src/nodes/code/ScriptableNode.d.ts +2 -2
- three/src/nodes/core/AssignNode.d.ts +2 -2
- three/src/nodes/core/AttributeNode.d.ts +1 -1
- three/src/nodes/core/BypassNode.d.ts +2 -2
- three/src/nodes/core/CacheNode.d.ts +0 -2
- three/src/nodes/core/ContextNode.d.ts +3 -3
- three/src/nodes/core/StackNode.d.ts +3 -13
- three/src/nodes/core/SubBuildNode.d.ts +15 -0
- three/src/nodes/core/VarNode.d.ts +4 -4
- three/src/nodes/core/VaryingNode.d.ts +3 -3
- three/src/nodes/display/BlendModes.d.ts +12 -12
- three/src/nodes/display/BumpMapNode.d.ts +4 -3
- three/src/nodes/display/ColorAdjustment.d.ts +17 -17
- three/src/nodes/display/ColorSpaceFunctions.d.ts +3 -3
- three/src/nodes/display/ColorSpaceNode.d.ts +4 -4
- three/src/nodes/display/FrontFacingNode.d.ts +1 -0
- three/src/nodes/display/PosterizeNode.d.ts +3 -3
- three/src/nodes/display/RenderOutputNode.d.ts +2 -2
- three/src/nodes/display/ScreenNode.d.ts +0 -10
- three/src/nodes/display/ToneMappingFunctions.d.ts +7 -7
- three/src/nodes/display/ToneMappingNode.d.ts +6 -6
- three/src/nodes/display/ViewportDepthTextureNode.d.ts +3 -3
- three/src/nodes/fog/Fog.d.ts +10 -10
- three/src/nodes/functions/BSDF/Schlick_to_F0.d.ts +4 -4
- three/src/nodes/functions/material/getAlphaHashThreshold.d.ts +2 -2
- three/src/nodes/functions/material/getParallaxCorrectNormal.d.ts +4 -4
- three/src/nodes/geometry/RangeNode.d.ts +9 -2
- three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +20 -20
- three/src/nodes/gpgpu/ComputeNode.d.ts +2 -2
- three/src/nodes/lighting/PointShadowNode.d.ts +11 -11
- three/src/nodes/lighting/ShadowFilterNode.d.ts +11 -11
- three/src/nodes/materialx/MaterialXNodes.d.ts +59 -59
- three/src/nodes/materialx/lib/mx_hsv.d.ts +3 -3
- three/src/nodes/materialx/lib/mx_noise.d.ts +206 -206
- three/src/nodes/materialx/lib/mx_transform_color.d.ts +2 -2
- three/src/nodes/math/ConditionalNode.d.ts +4 -19
- three/src/nodes/math/Hash.d.ts +2 -2
- three/src/nodes/math/MathNode.d.ts +21 -17
- three/src/nodes/math/OperatorNode.d.ts +41 -52
- three/src/nodes/math/TriNoise3D.d.ts +6 -6
- three/src/nodes/pmrem/PMREMNode.d.ts +3 -3
- three/src/nodes/pmrem/PMREMUtils.d.ts +20 -20
- three/src/nodes/procedural/Checker.d.ts +2 -2
- three/src/nodes/shapes/Shapes.d.ts +2 -2
- three/src/nodes/tsl/TSLBase.d.ts +1 -0
- three/src/nodes/tsl/TSLCore.d.ts +176 -76
- three/src/nodes/utils/CubeMapNode.d.ts +2 -2
- three/src/nodes/utils/DebugNode.d.ts +2 -2
- three/src/nodes/utils/Discard.d.ts +2 -2
- three/src/nodes/utils/EquirectUV.d.ts +4 -0
- three/src/nodes/utils/LoopNode.d.ts +2 -7
- three/src/nodes/utils/MatcapUV.d.ts +4 -0
- three/src/nodes/utils/Oscillators.d.ts +5 -5
- three/src/nodes/utils/Packing.d.ts +3 -3
- three/src/nodes/utils/PostProcessingUtils.d.ts +9 -9
- three/src/nodes/utils/RTTNode.d.ts +3 -3
- three/src/nodes/utils/RemapNode.d.ts +9 -9
- three/src/nodes/utils/RotateNode.d.ts +3 -3
- three/src/nodes/utils/SampleNode.d.ts +16 -0
- three/src/nodes/utils/SpriteSheetUVNode.d.ts +4 -4
- three/src/nodes/utils/SpriteUtils.d.ts +2 -2
- three/src/nodes/utils/StorageArrayElementNode.d.ts +4 -3
- three/src/nodes/utils/TriplanarTextures.d.ts +20 -0
- three/src/nodes/utils/UVUtils.d.ts +8 -7
- three/src/nodes/utils/ViewportUtils.d.ts +2 -2
- three/src/objects/LOD.d.ts +1 -1
- three/src/renderers/WebGLRenderer.d.ts +1 -1
- three/src/renderers/common/Backend.d.ts +3 -3
- three/src/renderers/common/RenderObject.d.ts +10 -2
- three/src/renderers/common/Renderer.d.ts +5 -5
- three/src/renderers/common/Storage3DTexture.d.ts +40 -0
- three/src/renderers/common/StorageArrayTexture.d.ts +29 -0
- three/src/renderers/common/Textures.d.ts +2 -2
- three/src/renderers/common/XRRenderTarget.d.ts +3 -2
- three/src/renderers/common/nodes/NodeLibrary.d.ts +4 -9
- three/src/renderers/common/nodes/NodeSampledTexture.d.ts +1 -1
- three/src/renderers/common/nodes/Nodes.d.ts +1 -1
- three/src/renderers/webgpu/WebGPURenderer.d.ts +3 -0
- three/src/renderers/webgpu/nodes/StandardNodeLibrary.d.ts +65 -0
- three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +9 -0
- three/src/nodes/utils/EquirectUVNode.d.ts +0 -8
- three/src/nodes/utils/MatcapUVNode.d.ts +0 -8
- three/src/nodes/utils/TriplanarTexturesNode.d.ts +0 -36
- three/src/renderers/common/nodes/StandardNodeLibrary.d.ts +0 -5
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Vector3 } from "../../math/Vector3.js";
|
|
1
2
|
import Node from "../core/Node.js";
|
|
2
3
|
import TempNode from "../core/TempNode.js";
|
|
3
|
-
import {
|
|
4
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
5
|
import OperatorNode from "./OperatorNode.js";
|
|
5
6
|
|
|
6
7
|
export type MathNodeMethod1 =
|
|
@@ -132,7 +133,9 @@ export const INFINITY: ShaderNodeObject<Node>;
|
|
|
132
133
|
export const PI: ShaderNodeObject<Node>;
|
|
133
134
|
export const PI2: ShaderNodeObject<Node>;
|
|
134
135
|
|
|
135
|
-
type
|
|
136
|
+
type MathNodeParameter = Node | number;
|
|
137
|
+
|
|
138
|
+
type Unary = (a: MathNodeParameter) => ShaderNodeObject<MathNode>;
|
|
136
139
|
|
|
137
140
|
export const all: Unary;
|
|
138
141
|
export const any: Unary;
|
|
@@ -152,14 +155,14 @@ export const sqrt: Unary;
|
|
|
152
155
|
export const inverseSqrt: Unary;
|
|
153
156
|
export const floor: Unary;
|
|
154
157
|
export const ceil: Unary;
|
|
155
|
-
export const normalize:
|
|
158
|
+
export const normalize: (a: Node | Vector3) => ShaderNodeObject<MathNode>;
|
|
156
159
|
export const fract: Unary;
|
|
157
160
|
export const sin: Unary;
|
|
158
161
|
export const cos: Unary;
|
|
159
162
|
export const tan: Unary;
|
|
160
163
|
export const asin: Unary;
|
|
161
164
|
export const acos: Unary;
|
|
162
|
-
export const atan: (a:
|
|
165
|
+
export const atan: (a: MathNodeParameter, b?: MathNodeParameter) => ShaderNodeObject<MathNode>;
|
|
163
166
|
export const abs: Unary;
|
|
164
167
|
export const sign: Unary;
|
|
165
168
|
export const length: Unary;
|
|
@@ -173,18 +176,18 @@ export const trunc: Unary;
|
|
|
173
176
|
export const fwidth: Unary;
|
|
174
177
|
export const transpose: Unary;
|
|
175
178
|
|
|
176
|
-
type Binary = (a:
|
|
179
|
+
type Binary = (a: MathNodeParameter, b: MathNodeParameter) => ShaderNodeObject<MathNode>;
|
|
177
180
|
|
|
178
181
|
export const bitcast: Binary;
|
|
179
182
|
export const min: (
|
|
180
|
-
x:
|
|
181
|
-
y:
|
|
182
|
-
...values:
|
|
183
|
+
x: MathNodeParameter,
|
|
184
|
+
y: MathNodeParameter,
|
|
185
|
+
...values: MathNodeParameter[]
|
|
183
186
|
) => ShaderNodeObject<MathNode>;
|
|
184
187
|
export const max: (
|
|
185
|
-
x:
|
|
186
|
-
y:
|
|
187
|
-
...values:
|
|
188
|
+
x: MathNodeParameter,
|
|
189
|
+
y: MathNodeParameter,
|
|
190
|
+
...values: MathNodeParameter[]
|
|
188
191
|
) => ShaderNodeObject<MathNode>;
|
|
189
192
|
export const step: Binary;
|
|
190
193
|
export const reflect: Binary;
|
|
@@ -200,23 +203,24 @@ export const transformDirection: Binary;
|
|
|
200
203
|
export const cbrt: Unary;
|
|
201
204
|
export const lengthSq: Unary;
|
|
202
205
|
|
|
203
|
-
type Ternary = (a:
|
|
206
|
+
type Ternary = (a: MathNodeParameter, b: MathNodeParameter, c: MathNodeParameter) => ShaderNodeObject<MathNode>;
|
|
204
207
|
|
|
205
208
|
export const mix: Ternary;
|
|
206
209
|
export const clamp: (
|
|
207
|
-
a:
|
|
208
|
-
b?:
|
|
209
|
-
c?:
|
|
210
|
+
a: MathNodeParameter,
|
|
211
|
+
b?: MathNodeParameter,
|
|
212
|
+
c?: MathNodeParameter,
|
|
210
213
|
) => ShaderNodeObject<MathNode>;
|
|
211
214
|
export const saturate: Unary;
|
|
212
215
|
export const refract: Ternary;
|
|
213
216
|
export const smoothstep: Ternary;
|
|
214
217
|
export const faceForward: Ternary;
|
|
215
218
|
|
|
216
|
-
export const rand: (uv:
|
|
219
|
+
export const rand: (uv: MathNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
217
220
|
|
|
218
221
|
export const mixElement: Ternary;
|
|
219
222
|
export const smoothstepElement: Ternary;
|
|
223
|
+
export const stepElement: Binary;
|
|
220
224
|
|
|
221
225
|
/**
|
|
222
226
|
* @deprecated
|
|
@@ -268,7 +272,7 @@ declare module "../tsl/TSLCore.js" {
|
|
|
268
272
|
atan2: typeof atan2;
|
|
269
273
|
min: typeof min;
|
|
270
274
|
max: typeof max;
|
|
271
|
-
step: typeof
|
|
275
|
+
step: typeof stepElement;
|
|
272
276
|
reflect: typeof reflect;
|
|
273
277
|
distance: typeof distance;
|
|
274
278
|
dot: typeof dot;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
2
|
import TempNode from "../core/TempNode.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
4
|
|
|
5
5
|
export type OperatorNodeOp =
|
|
6
6
|
| "%"
|
|
@@ -33,56 +33,58 @@ export default class OperatorNode extends TempNode {
|
|
|
33
33
|
constructor(op: OperatorNodeOp, ...params: [Node, Node, ...Node[]]);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
type OperatorNodeParameter = Node | number;
|
|
37
|
+
|
|
36
38
|
export const add: (
|
|
37
|
-
a:
|
|
38
|
-
b:
|
|
39
|
-
...params:
|
|
39
|
+
a: OperatorNodeParameter,
|
|
40
|
+
b: OperatorNodeParameter,
|
|
41
|
+
...params: OperatorNodeParameter[]
|
|
40
42
|
) => ShaderNodeObject<OperatorNode>;
|
|
41
43
|
export const sub: (
|
|
42
|
-
a:
|
|
43
|
-
b:
|
|
44
|
-
...params:
|
|
44
|
+
a: OperatorNodeParameter,
|
|
45
|
+
b: OperatorNodeParameter,
|
|
46
|
+
...params: OperatorNodeParameter[]
|
|
45
47
|
) => ShaderNodeObject<OperatorNode>;
|
|
46
48
|
export const mul: (
|
|
47
|
-
a:
|
|
48
|
-
b:
|
|
49
|
-
...params:
|
|
49
|
+
a: OperatorNodeParameter,
|
|
50
|
+
b: OperatorNodeParameter,
|
|
51
|
+
...params: OperatorNodeParameter[]
|
|
50
52
|
) => ShaderNodeObject<OperatorNode>;
|
|
51
53
|
export const div: (
|
|
52
|
-
a:
|
|
53
|
-
b:
|
|
54
|
-
...params:
|
|
54
|
+
a: OperatorNodeParameter,
|
|
55
|
+
b: OperatorNodeParameter,
|
|
56
|
+
...params: OperatorNodeParameter[]
|
|
55
57
|
) => ShaderNodeObject<OperatorNode>;
|
|
56
|
-
export const mod: (a:
|
|
57
|
-
export const equal: (a:
|
|
58
|
-
export const notEqual: (a:
|
|
59
|
-
export const lessThan: (a:
|
|
60
|
-
export const greaterThan: (a:
|
|
61
|
-
export const lessThanEqual: (a:
|
|
62
|
-
export const greaterThanEqual: (a:
|
|
58
|
+
export const mod: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
59
|
+
export const equal: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
60
|
+
export const notEqual: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
61
|
+
export const lessThan: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
62
|
+
export const greaterThan: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
63
|
+
export const lessThanEqual: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
64
|
+
export const greaterThanEqual: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
63
65
|
export const and: (
|
|
64
|
-
a:
|
|
65
|
-
b:
|
|
66
|
-
...params:
|
|
66
|
+
a: OperatorNodeParameter,
|
|
67
|
+
b: OperatorNodeParameter,
|
|
68
|
+
...params: OperatorNodeParameter[]
|
|
67
69
|
) => ShaderNodeObject<OperatorNode>;
|
|
68
70
|
export const or: (
|
|
69
|
-
a:
|
|
70
|
-
b:
|
|
71
|
-
...params:
|
|
71
|
+
a: OperatorNodeParameter,
|
|
72
|
+
b: OperatorNodeParameter,
|
|
73
|
+
...params: OperatorNodeParameter[]
|
|
72
74
|
) => ShaderNodeObject<OperatorNode>;
|
|
73
|
-
export const not: (value:
|
|
74
|
-
export const xor: (a:
|
|
75
|
-
export const bitAnd: (a:
|
|
76
|
-
export const bitNot: (a:
|
|
77
|
-
export const bitOr: (a:
|
|
78
|
-
export const bitXor: (a:
|
|
79
|
-
export const shiftLeft: (a:
|
|
80
|
-
export const shiftRight: (a:
|
|
75
|
+
export const not: (value: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
76
|
+
export const xor: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
77
|
+
export const bitAnd: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
78
|
+
export const bitNot: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
79
|
+
export const bitOr: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
80
|
+
export const bitXor: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
81
|
+
export const shiftLeft: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
82
|
+
export const shiftRight: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
81
83
|
|
|
82
|
-
export const incrementBefore: (a:
|
|
83
|
-
export const decrementBefore: (a:
|
|
84
|
-
export const increment: (a:
|
|
85
|
-
export const decrement: (a:
|
|
84
|
+
export const incrementBefore: (a: OperatorNodeParameter) => ShaderNodeObject<Node>;
|
|
85
|
+
export const decrementBefore: (a: OperatorNodeParameter) => ShaderNodeObject<Node>;
|
|
86
|
+
export const increment: (a: OperatorNodeParameter) => ShaderNodeObject<Node>;
|
|
87
|
+
export const decrement: (a: OperatorNodeParameter) => ShaderNodeObject<Node>;
|
|
86
88
|
|
|
87
89
|
declare module "../tsl/TSLCore.js" {
|
|
88
90
|
interface NodeElements {
|
|
@@ -114,26 +116,13 @@ declare module "../tsl/TSLCore.js" {
|
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
118
|
|
|
117
|
-
/**
|
|
118
|
-
* @deprecated .remainder() has been renamed to .modInt().
|
|
119
|
-
*/
|
|
120
|
-
export const remainder: (
|
|
121
|
-
aNode: NodeRepresentation,
|
|
122
|
-
bNode: NodeRepresentation,
|
|
123
|
-
...params: NodeRepresentation[]
|
|
124
|
-
) => ShaderNodeObject<OperatorNode>;
|
|
125
|
-
|
|
126
119
|
/**
|
|
127
120
|
* @deprecated "modInt()" is deprecated. Use "mod( int( ... ) )" instead.
|
|
128
121
|
*/
|
|
129
|
-
export const modInt: (a:
|
|
122
|
+
export const modInt: (a: OperatorNodeParameter, b: OperatorNodeParameter) => ShaderNodeObject<OperatorNode>;
|
|
130
123
|
|
|
131
124
|
declare module "../tsl/TSLCore.js" {
|
|
132
125
|
interface NodeElements {
|
|
133
|
-
/**
|
|
134
|
-
* @deprecated .remainder() has been renamed to .modInt().
|
|
135
|
-
*/
|
|
136
|
-
remainder: typeof remainder;
|
|
137
126
|
/**
|
|
138
127
|
* @deprecated "modInt()" is deprecated. Use "mod( int( ... ) )" instead.
|
|
139
128
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
3
|
|
|
4
|
-
export const tri: (x:
|
|
4
|
+
export const tri: (x: Node) => ShaderNodeObject<Node>;
|
|
5
5
|
|
|
6
|
-
export const tri3: (p:
|
|
6
|
+
export const tri3: (p: Node) => ShaderNodeObject<Node>;
|
|
7
7
|
|
|
8
8
|
export const triNoise3D: (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
time:
|
|
9
|
+
position: Node,
|
|
10
|
+
speed: Node | number,
|
|
11
|
+
time: Node | number,
|
|
12
12
|
) => ShaderNodeObject<Node>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Texture } from "../../textures/Texture.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import TempNode from "../core/TempNode.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
5
|
|
|
6
6
|
declare class PMREMNode extends TempNode {
|
|
7
7
|
uvNode: Node | null;
|
|
@@ -17,6 +17,6 @@ export default PMREMNode;
|
|
|
17
17
|
|
|
18
18
|
export const pmremTexture: (
|
|
19
19
|
value: Texture,
|
|
20
|
-
uvNode?:
|
|
21
|
-
levelNode?:
|
|
20
|
+
uvNode?: Node,
|
|
21
|
+
levelNode?: Node,
|
|
22
22
|
) => ShaderNodeObject<PMREMNode>;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
3
|
|
|
4
|
-
export const getDirection: (uv_immutable:
|
|
4
|
+
export const getDirection: (uv_immutable: Node, face: Node) => ShaderNodeObject<Node>;
|
|
5
5
|
|
|
6
6
|
export const textureCubeUV: (
|
|
7
|
-
envMap:
|
|
8
|
-
sampleDir_immutable:
|
|
9
|
-
roughness_immutable:
|
|
10
|
-
CUBEUV_TEXEL_WIDTH:
|
|
11
|
-
CUBEUV_TEXEL_HEIGHT:
|
|
12
|
-
CUBEUV_MAX_MIP:
|
|
7
|
+
envMap: Node,
|
|
8
|
+
sampleDir_immutable: Node,
|
|
9
|
+
roughness_immutable: Node,
|
|
10
|
+
CUBEUV_TEXEL_WIDTH: Node,
|
|
11
|
+
CUBEUV_TEXEL_HEIGHT: Node,
|
|
12
|
+
CUBEUV_MAX_MIP: Node,
|
|
13
13
|
) => ShaderNodeObject<Node>;
|
|
14
14
|
|
|
15
15
|
export const blur: (
|
|
16
|
-
n:
|
|
17
|
-
latitudinal:
|
|
18
|
-
poleAxis:
|
|
19
|
-
outputDirection:
|
|
20
|
-
weights:
|
|
21
|
-
samples:
|
|
22
|
-
dTheta:
|
|
23
|
-
mipInt:
|
|
24
|
-
envMap:
|
|
25
|
-
CUBEUV_TEXEL_WIDTH:
|
|
26
|
-
CUBEUV_TEXEL_HEIGHT:
|
|
27
|
-
CUBEUV_MAX_MIP:
|
|
16
|
+
n: Node,
|
|
17
|
+
latitudinal: Node,
|
|
18
|
+
poleAxis: Node,
|
|
19
|
+
outputDirection: Node,
|
|
20
|
+
weights: Node,
|
|
21
|
+
samples: Node,
|
|
22
|
+
dTheta: Node,
|
|
23
|
+
mipInt: Node,
|
|
24
|
+
envMap: Node,
|
|
25
|
+
CUBEUV_TEXEL_WIDTH: Node,
|
|
26
|
+
CUBEUV_TEXEL_HEIGHT: Node,
|
|
27
|
+
CUBEUV_MAX_MIP: Node,
|
|
28
28
|
) => ShaderNodeObject<Node>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
3
|
|
|
4
|
-
export const checker: (coord?:
|
|
4
|
+
export const checker: (coord?: Node) => ShaderNodeObject<Node>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
3
|
|
|
4
|
-
export const shapeCircle: (coord?:
|
|
4
|
+
export const shapeCircle: (coord?: Node) => ShaderNodeObject<Node>;
|
three/src/nodes/tsl/TSLBase.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "../core/BypassNode.js";
|
|
|
7
7
|
export * from "../core/CacheNode.js";
|
|
8
8
|
export * from "../core/ContextNode.js";
|
|
9
9
|
export * from "../core/PropertyNode.js";
|
|
10
|
+
export * from "../core/SubBuildNode.js";
|
|
10
11
|
export * from "../core/UniformNode.js";
|
|
11
12
|
export * from "../core/VarNode.js";
|
|
12
13
|
export * from "../core/VaryingNode.js";
|