@types/three 0.176.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/Addons.d.ts +0 -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/LDrawLoader.d.ts +8 -3
- three/examples/jsm/loaders/SVGLoader.d.ts +1 -1
- three/examples/jsm/math/Octree.d.ts +3 -0
- three/examples/jsm/physics/RapierPhysics.d.ts +1 -0
- three/examples/jsm/postprocessing/AfterimagePass.d.ts +13 -10
- three/examples/jsm/postprocessing/FXAAPass.d.ts +7 -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 +10 -4
- three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +5 -5
- three/package.json +3 -3
- three/src/Three.Core.d.ts +0 -2
- three/src/Three.TSL.d.ts +11 -18
- three/src/Three.WebGPU.Nodes.d.ts +1 -0
- three/src/Three.WebGPU.d.ts +3 -0
- three/src/animation/tracks/NumberKeyframeTrack.d.ts +1 -1
- three/src/animation/tracks/QuaternionKeyframeTrack.d.ts +1 -1
- three/src/animation/tracks/StringKeyframeTrack.d.ts +1 -1
- three/src/animation/tracks/VectorKeyframeTrack.d.ts +1 -1
- three/src/constants.d.ts +13 -5
- three/src/core/BufferGeometry.d.ts +11 -2
- three/src/core/GLBufferAttribute.d.ts +18 -1
- three/src/core/RenderTarget.d.ts +3 -20
- three/src/extras/DataUtils.d.ts +4 -4
- three/src/geometries/CapsuleGeometry.d.ts +1 -0
- three/src/helpers/AxesHelper.d.ts +3 -1
- three/src/lights/SpotLightShadow.d.ts +2 -0
- three/src/lights/webgpu/ProjectorLight.d.ts +17 -0
- 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 +418 -55
- 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 -18
- three/src/materials/nodes/VolumeNodeMaterial.d.ts +50 -14
- three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +4 -0
- three/src/math/Box3.d.ts +8 -0
- three/src/math/Color.d.ts +1 -1
- three/src/math/ColorManagement.d.ts +12 -2
- three/src/math/Sphere.d.ts +8 -0
- three/src/math/Triangle.d.ts +3 -3
- three/src/nodes/Nodes.d.ts +2 -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 +16 -5
- 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 +24 -19
- 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 +7 -3
- 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 +1 -0
- three/src/nodes/core/ContextNode.d.ts +3 -3
- three/src/nodes/core/Node.d.ts +5 -4
- three/src/nodes/core/NodeUtils.d.ts +4 -0
- 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 +14 -10
- 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 +6 -16
- 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/ProjectorLightNode.d.ts +5 -0
- three/src/nodes/lighting/ShadowFilterNode.d.ts +11 -11
- three/src/nodes/lighting/SpotLightNode.d.ts +15 -1
- 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 +186 -81
- 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/ReflectorNode.d.ts +1 -0
- 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/objects/Mesh.d.ts +8 -0
- three/src/objects/Sprite.d.ts +8 -0
- three/src/renderers/WebGLRenderer.d.ts +3 -3
- 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 +10 -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/XRManager.d.ts +45 -0
- 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/nodes/WGSLNodeBuilder.d.ts +1 -0
- three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +10 -1
- three/src/textures/DepthTexture.d.ts +4 -2
- three/src/textures/Source.d.ts +20 -16
- three/src/textures/Texture.d.ts +69 -2
- three/examples/jsm/effects/PeppersGhostEffect.d.ts +0 -10
- three/src/core/RenderTargetArray.d.ts +0 -9
- 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
- three/src/textures/DepthArrayTexture.d.ts +0 -14
|
@@ -1,26 +1,76 @@
|
|
|
1
|
-
import { Color } from "../../math/Color.js";
|
|
2
1
|
import Node from "../../nodes/core/Node.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
export interface SpriteNodeMaterialParameters extends NodeMaterialParameters, SpriteMaterialParameters {
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export default class SpriteNodeMaterial extends NodeMaterial {
|
|
11
|
-
isSpriteNodeMaterial: true;
|
|
2
|
+
import NodeBuilder from "../../nodes/core/NodeBuilder.js";
|
|
3
|
+
import { MapColorPropertiesToColorRepresentations } from "../Material.js";
|
|
4
|
+
import { SpriteMaterialParameters, SpriteMaterialProperties } from "../SpriteMaterial.js";
|
|
5
|
+
import NodeMaterial, { NodeMaterialNodeProperties } from "./NodeMaterial.js";
|
|
12
6
|
|
|
7
|
+
export interface SpriteNodeMaterialNodeProperties extends NodeMaterialNodeProperties {
|
|
8
|
+
/**
|
|
9
|
+
* The rotation of sprite materials is by default inferred from the `rotation`,
|
|
10
|
+
* property. This node property allows to overwrite the default and define
|
|
11
|
+
* the rotation with a node instead.
|
|
12
|
+
*
|
|
13
|
+
* If you don't want to overwrite the rotation but modify the existing
|
|
14
|
+
* value instead, use {@link materialRotation}.
|
|
15
|
+
*
|
|
16
|
+
* @default null
|
|
17
|
+
*/
|
|
13
18
|
rotationNode: Node | null;
|
|
19
|
+
/**
|
|
20
|
+
* This node property provides an additional way to scale sprites next to
|
|
21
|
+
* `Object3D.scale`. The scale transformation based in `Object3D.scale`
|
|
22
|
+
* is multiplied with the scale value of this node in the vertex shader.
|
|
23
|
+
*
|
|
24
|
+
* @default null
|
|
25
|
+
*/
|
|
14
26
|
scaleNode: Node | null;
|
|
27
|
+
set sizeAttenuation(value: boolean);
|
|
28
|
+
/**
|
|
29
|
+
* Whether to use size attenuation or not.
|
|
30
|
+
*
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
get sizeAttenuation(): boolean;
|
|
35
|
+
}
|
|
15
36
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
sizeAttenuation: boolean;
|
|
23
|
-
fog: boolean;
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
38
|
+
export interface SpriteNodeMaterialParameters
|
|
39
|
+
extends
|
|
40
|
+
Partial<MapColorPropertiesToColorRepresentations<SpriteNodeMaterialNodeProperties>>,
|
|
41
|
+
SpriteMaterialParameters
|
|
42
|
+
{}
|
|
24
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Node material version of {@link SpriteMaterial}.
|
|
46
|
+
*/
|
|
47
|
+
declare class SpriteNodeMaterial extends NodeMaterial {
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a new sprite node material.
|
|
50
|
+
*
|
|
51
|
+
* @param {Object} [parameters] - The configuration parameter.
|
|
52
|
+
*/
|
|
25
53
|
constructor(parameters?: SpriteNodeMaterialParameters);
|
|
54
|
+
readonly isSpriteMaterial: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* This flag can be used for type testing.
|
|
57
|
+
*
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @readonly
|
|
60
|
+
* @default true
|
|
61
|
+
*/
|
|
62
|
+
readonly isSpriteNodeMaterial: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Setups the position node in view space. This method implements
|
|
65
|
+
* the sprite specific vertex shader.
|
|
66
|
+
*
|
|
67
|
+
* @param {NodeBuilder} builder - The current node builder.
|
|
68
|
+
* @return {Node<vec3>} The position in view space.
|
|
69
|
+
*/
|
|
70
|
+
setupPositionView(builder: NodeBuilder): Node;
|
|
26
71
|
}
|
|
72
|
+
|
|
73
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
74
|
+
interface SpriteNodeMaterial extends SpriteNodeMaterialNodeProperties, SpriteMaterialProperties {}
|
|
75
|
+
|
|
76
|
+
export default SpriteNodeMaterial;
|
|
@@ -1,22 +1,58 @@
|
|
|
1
|
-
import FunctionNode from "../../nodes/code/FunctionNode.js";
|
|
2
1
|
import Node from "../../nodes/core/Node.js";
|
|
2
|
+
import VolumetricLightingModel from "../../nodes/functions/VolumetricLightingModel.js";
|
|
3
3
|
import { ShaderNodeObject } from "../../nodes/tsl/TSLCore.js";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
export interface VolumeNodeMaterialParameters extends NodeMaterialParameters {
|
|
7
|
-
steps?: number | undefined;
|
|
8
|
-
|
|
9
|
-
scatteringNode?: Node | null | undefined;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export default class VolumeNodeMaterial extends NodeMaterial {
|
|
13
|
-
readonly isVolumeNodeMaterial: true;
|
|
4
|
+
import { MapColorPropertiesToColorRepresentations, MaterialParameters, MaterialProperties } from "../Material.js";
|
|
5
|
+
import NodeMaterial, { NodeMaterialNodeProperties } from "./NodeMaterial.js";
|
|
14
6
|
|
|
7
|
+
export interface VolumeNodeMaterialNodeProperties extends NodeMaterialNodeProperties {
|
|
8
|
+
/**
|
|
9
|
+
* Number of steps used for raymarching.
|
|
10
|
+
*
|
|
11
|
+
* @default 25
|
|
12
|
+
*/
|
|
15
13
|
steps: number;
|
|
16
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Offsets the distance a ray has been traveled through a volume.
|
|
16
|
+
* Can be used to implement dithering to reduce banding.
|
|
17
|
+
*
|
|
18
|
+
* @default null
|
|
19
|
+
*/
|
|
20
|
+
offsetNode: Node;
|
|
21
|
+
/**
|
|
22
|
+
* Node used for scattering calculations.
|
|
23
|
+
*
|
|
24
|
+
* @default null
|
|
25
|
+
*/
|
|
17
26
|
scatteringNode: (params: { positionRay: ShaderNodeObject<Node> }) => Node | null;
|
|
27
|
+
}
|
|
18
28
|
|
|
19
|
-
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
30
|
+
export interface VolumeNodeMaterialParameters
|
|
31
|
+
extends Partial<MapColorPropertiesToColorRepresentations<VolumeNodeMaterialNodeProperties>>, MaterialParameters
|
|
32
|
+
{}
|
|
20
33
|
|
|
21
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Volume node material.
|
|
36
|
+
*
|
|
37
|
+
* @augments NodeMaterial
|
|
38
|
+
*/
|
|
39
|
+
declare class VolumeNodeMaterial extends NodeMaterial {
|
|
40
|
+
/**
|
|
41
|
+
* Constructs a new volume node material.
|
|
42
|
+
*
|
|
43
|
+
* @param {Object} [parameters] - The configuration parameter.
|
|
44
|
+
*/
|
|
45
|
+
constructor(parameters?: VolumeNodeMaterialParameters);
|
|
46
|
+
/**
|
|
47
|
+
* This flag can be used for type testing.
|
|
48
|
+
*
|
|
49
|
+
* @default true
|
|
50
|
+
*/
|
|
51
|
+
readonly isVolumeNodeMaterial: boolean;
|
|
52
|
+
setupLightingModel(): VolumetricLightingModel;
|
|
22
53
|
}
|
|
54
|
+
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
56
|
+
interface VolumeNodeMaterial extends VolumeNodeMaterialNodeProperties, MaterialProperties {}
|
|
57
|
+
|
|
58
|
+
export default VolumeNodeMaterial;
|
|
@@ -12,6 +12,7 @@ declare const refreshUniforms: readonly [
|
|
|
12
12
|
"anisotropyMap",
|
|
13
13
|
"anisotropyRotation",
|
|
14
14
|
"aoMap",
|
|
15
|
+
"aoMapIntensity",
|
|
15
16
|
"attenuationColor",
|
|
16
17
|
"attenuationDistance",
|
|
17
18
|
"bumpMap",
|
|
@@ -24,8 +25,10 @@ declare const refreshUniforms: readonly [
|
|
|
24
25
|
"dispersion",
|
|
25
26
|
"displacementMap",
|
|
26
27
|
"emissive",
|
|
28
|
+
"emissiveIntensity",
|
|
27
29
|
"emissiveMap",
|
|
28
30
|
"envMap",
|
|
31
|
+
"envMapIntensity",
|
|
29
32
|
"gradientMap",
|
|
30
33
|
"ior",
|
|
31
34
|
"iridescence",
|
|
@@ -33,6 +36,7 @@ declare const refreshUniforms: readonly [
|
|
|
33
36
|
"iridescenceMap",
|
|
34
37
|
"iridescenceThicknessMap",
|
|
35
38
|
"lightMap",
|
|
39
|
+
"lightMapIntensity",
|
|
36
40
|
"map",
|
|
37
41
|
"matcap",
|
|
38
42
|
"metalness",
|
three/src/math/Box3.d.ts
CHANGED
|
@@ -63,4 +63,12 @@ export class Box3 {
|
|
|
63
63
|
* @deprecated Use {@link Box3#intersectsSphere .intersectsSphere()} instead.
|
|
64
64
|
*/
|
|
65
65
|
isIntersectionSphere(s: any): any;
|
|
66
|
+
|
|
67
|
+
toJSON(): Box3JSON;
|
|
68
|
+
fromJSON(json: Box3JSON): this;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface Box3JSON {
|
|
72
|
+
min: number[];
|
|
73
|
+
max: number[];
|
|
66
74
|
}
|
three/src/math/Color.d.ts
CHANGED
|
@@ -302,7 +302,7 @@ export class Color {
|
|
|
302
302
|
getHex(colorSpace?: string): number;
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
|
-
* Returns the string
|
|
305
|
+
* Returns the string formatted hexadecimal value of this color.
|
|
306
306
|
*/
|
|
307
307
|
getHexString(colorSpace?: string): string;
|
|
308
308
|
|
|
@@ -29,9 +29,9 @@ export interface ColorManagement {
|
|
|
29
29
|
|
|
30
30
|
convert: (color: Color, sourceColorSpace: string, targetColorSpace: string) => Color;
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
workingToColorSpace: (color: Color, targetColorSpace: string) => Color;
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
colorSpaceToWorking: (color: Color, sourceColorSpace: string) => Color;
|
|
35
35
|
|
|
36
36
|
getPrimaries: (colorSpace: string) => [number, number, number, number, number, number];
|
|
37
37
|
|
|
@@ -40,6 +40,16 @@ export interface ColorManagement {
|
|
|
40
40
|
getLuminanceCoefficients: (target: Vector3, colorSpace?: string) => [number, number, number];
|
|
41
41
|
|
|
42
42
|
define: (colorSpaces: Record<string, ColorSpaceDefinition>) => void;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated .fromWorkingColorSpace() has been renamed to .workingToColorSpace().
|
|
46
|
+
*/
|
|
47
|
+
fromWorkingColorSpace: (color: Color, targetColorSpace: string) => Color;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().
|
|
51
|
+
*/
|
|
52
|
+
toWorkingColorSpace: (color: Color, sourceColorSpace: string) => Color;
|
|
43
53
|
}
|
|
44
54
|
|
|
45
55
|
export const ColorManagement: ColorManagement;
|
three/src/math/Sphere.d.ts
CHANGED
|
@@ -44,4 +44,12 @@ export class Sphere {
|
|
|
44
44
|
* @deprecated Use {@link Sphere#isEmpty .isEmpty()} instead.
|
|
45
45
|
*/
|
|
46
46
|
empty(): any;
|
|
47
|
+
|
|
48
|
+
toJSON(): SphereJSON;
|
|
49
|
+
fromJSON(json: SphereJSON): this;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface SphereJSON {
|
|
53
|
+
radius: number;
|
|
54
|
+
center: number[];
|
|
47
55
|
}
|
three/src/math/Triangle.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ export class Triangle {
|
|
|
83
83
|
target: Vector4,
|
|
84
84
|
): Vector4 | null;
|
|
85
85
|
static getInterpolatedAttribute(
|
|
86
|
-
attr: BufferAttribute,
|
|
86
|
+
attr: BufferAttribute | InterleavedBufferAttribute,
|
|
87
87
|
i1: number,
|
|
88
88
|
i2: number,
|
|
89
89
|
i3: number,
|
|
@@ -91,7 +91,7 @@ export class Triangle {
|
|
|
91
91
|
target: Vector2,
|
|
92
92
|
): Vector2;
|
|
93
93
|
static getInterpolatedAttribute(
|
|
94
|
-
attr: BufferAttribute,
|
|
94
|
+
attr: BufferAttribute | InterleavedBufferAttribute,
|
|
95
95
|
i1: number,
|
|
96
96
|
i2: number,
|
|
97
97
|
i3: number,
|
|
@@ -99,7 +99,7 @@ export class Triangle {
|
|
|
99
99
|
target: Vector3,
|
|
100
100
|
): Vector3;
|
|
101
101
|
static getInterpolatedAttribute(
|
|
102
|
-
attr: BufferAttribute,
|
|
102
|
+
attr: BufferAttribute | InterleavedBufferAttribute,
|
|
103
103
|
i1: number,
|
|
104
104
|
i2: number,
|
|
105
105
|
i3: number,
|
three/src/nodes/Nodes.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export { default as PropertyNode } from "./core/PropertyNode.js";
|
|
|
39
39
|
export { default as StackNode } from "./core/StackNode.js";
|
|
40
40
|
export { default as StructNode } from "./core/StructNode.js";
|
|
41
41
|
export { default as StructTypeNode } from "./core/StructTypeNode.js";
|
|
42
|
+
export { default as SubBuildNode } from "./core/SubBuildNode.js";
|
|
42
43
|
export { default as TempNode } from "./core/TempNode.js";
|
|
43
44
|
export { default as UniformGroupNode } from "./core/UniformGroupNode.js";
|
|
44
45
|
export { default as UniformNode } from "./core/UniformNode.js";
|
|
@@ -52,11 +53,9 @@ export { NodeUtils };
|
|
|
52
53
|
export { default as ArrayElementNode } from "./utils/ArrayElementNode.js";
|
|
53
54
|
export { default as ConvertNode } from "./utils/ConvertNode.js";
|
|
54
55
|
export { default as DebugNode } from "./utils/DebugNode.js";
|
|
55
|
-
export { default as EquirectUVNode } from "./utils/EquirectUVNode.js";
|
|
56
56
|
export { default as FunctionOverloadingNode } from "./utils/FunctionOverloadingNode.js";
|
|
57
57
|
export { default as JoinNode } from "./utils/JoinNode.js";
|
|
58
58
|
export { default as LoopNode } from "./utils/LoopNode.js";
|
|
59
|
-
export { default as MatcapUVNode } from "./utils/MatcapUVNode.js";
|
|
60
59
|
export { default as MaxMipLevelNode } from "./utils/MaxMipLevelNode.js";
|
|
61
60
|
export { default as MemberNode } from "./utils/MemberNode.js";
|
|
62
61
|
export { default as ReflectorNode, ReflectorNodeParameters } from "./utils/ReflectorNode.js";
|
|
@@ -67,7 +66,6 @@ export { default as SetNode } from "./utils/SetNode.js";
|
|
|
67
66
|
export { default as SplitNode } from "./utils/SplitNode.js";
|
|
68
67
|
export { default as SpriteSheetUVNode } from "./utils/SpriteSheetUVNode.js";
|
|
69
68
|
export { default as StorageArrayElementNode } from "./utils/StorageArrayElementNode.js";
|
|
70
|
-
export { default as TriplanarTexturesNode } from "./utils/TriplanarTexturesNode.js";
|
|
71
69
|
|
|
72
70
|
// accessors
|
|
73
71
|
export { default as BatchNode } from "./accessors/BatchNode.js";
|
|
@@ -139,6 +137,7 @@ export { default as LightingNode } from "./lighting/LightingNode.js";
|
|
|
139
137
|
export { default as LightProbeNode } from "./lighting/LightProbeNode.js";
|
|
140
138
|
export { default as LightsNode } from "./lighting/LightsNode.js";
|
|
141
139
|
export { default as PointLightNode } from "./lighting/PointLightNode.js";
|
|
140
|
+
export { default as ProjectorLightNode } from "./lighting/ProjectorLightNode.js";
|
|
142
141
|
export { default as RectAreaLightNode, RectAreaLightTexturesLib } from "./lighting/RectAreaLightNode.js";
|
|
143
142
|
export { default as ShadowBaseNode } from "./lighting/ShadowBaseNode.js";
|
|
144
143
|
export { default as ShadowNode } from "./lighting/ShadowNode.js";
|
three/src/nodes/TSL.d.ts
CHANGED
|
@@ -24,10 +24,10 @@ export * from "./math/MathUtils.js";
|
|
|
24
24
|
export * from "./math/TriNoise3D.js";
|
|
25
25
|
|
|
26
26
|
// utils
|
|
27
|
-
export * from "./utils/
|
|
27
|
+
export * from "./utils/EquirectUV.js";
|
|
28
28
|
export * from "./utils/FunctionOverloadingNode.js";
|
|
29
29
|
export * from "./utils/LoopNode.js";
|
|
30
|
-
export * from "./utils/
|
|
30
|
+
export * from "./utils/MatcapUV.js";
|
|
31
31
|
export * from "./utils/MaxMipLevelNode.js";
|
|
32
32
|
export * from "./utils/Oscillators.js";
|
|
33
33
|
export * from "./utils/Packing.js";
|
|
@@ -36,10 +36,11 @@ export * from "./utils/ReflectorNode.js";
|
|
|
36
36
|
export * from "./utils/RemapNode.js";
|
|
37
37
|
export * from "./utils/RotateNode.js";
|
|
38
38
|
export * from "./utils/RTTNode.js";
|
|
39
|
+
export * from "./utils/SampleNode.js";
|
|
39
40
|
export * from "./utils/SpriteSheetUVNode.js";
|
|
40
41
|
export * from "./utils/SpriteUtils.js";
|
|
41
42
|
export * from "./utils/Timer.js";
|
|
42
|
-
export * from "./utils/
|
|
43
|
+
export * from "./utils/TriplanarTextures.js";
|
|
43
44
|
export * from "./utils/UVUtils.js";
|
|
44
45
|
export * from "./utils/ViewportUtils.js";
|
|
45
46
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
3
|
|
|
4
4
|
export const TBNViewMatrix: ShaderNodeObject<Node>;
|
|
5
5
|
|
|
6
6
|
export const parallaxDirection: ShaderNodeObject<Node>;
|
|
7
|
-
export const parallaxUV: (uv: ShaderNodeObject<Node>, scale:
|
|
7
|
+
export const parallaxUV: (uv: ShaderNodeObject<Node>, scale: Node) => ShaderNodeObject<Node>;
|
|
8
8
|
|
|
9
|
-
export const
|
|
9
|
+
export const bentNormalView: ShaderNodeObject<Node>;
|
|
@@ -5,5 +5,3 @@ export const bitangentGeometry: ShaderNodeObject<MathNode>;
|
|
|
5
5
|
export const bitangentLocal: ShaderNodeObject<MathNode>;
|
|
6
6
|
export const bitangentView: ShaderNodeObject<MathNode>;
|
|
7
7
|
export const bitangentWorld: ShaderNodeObject<MathNode>;
|
|
8
|
-
export const transformedBitangentView: ShaderNodeObject<MathNode>;
|
|
9
|
-
export const transformedBitangentWorld: ShaderNodeObject<MathNode>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CubeTexture } from "../../textures/CubeTexture.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
4
|
import TextureNode from "./TextureNode.js";
|
|
5
5
|
|
|
6
6
|
declare class CubeTextureNode extends TextureNode {
|
|
@@ -20,9 +20,20 @@ declare class CubeTextureNode extends TextureNode {
|
|
|
20
20
|
|
|
21
21
|
export default CubeTextureNode;
|
|
22
22
|
|
|
23
|
-
export const
|
|
23
|
+
export const cubeTextureBase: (
|
|
24
24
|
value: CubeTexture,
|
|
25
|
-
uvNode?:
|
|
26
|
-
levelNode?:
|
|
27
|
-
biasNode?:
|
|
25
|
+
uvNode?: Node,
|
|
26
|
+
levelNode?: Node,
|
|
27
|
+
biasNode?: Node,
|
|
28
|
+
) => ShaderNodeObject<CubeTextureNode>;
|
|
29
|
+
|
|
30
|
+
export const cubeTexture: (
|
|
31
|
+
value?: CubeTexture,
|
|
32
|
+
uvNode?: Node | null,
|
|
33
|
+
levelNode?: Node | null,
|
|
34
|
+
biasNode?: Node | null,
|
|
35
|
+
) => ShaderNodeObject<CubeTextureNode>;
|
|
36
|
+
|
|
37
|
+
export const uniformCubeTexture: (
|
|
38
|
+
value?: CubeTexture,
|
|
28
39
|
) => ShaderNodeObject<CubeTextureNode>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Matrix4 } from "../../math/Matrix4.js";
|
|
2
1
|
import AttributeNode from "../core/AttributeNode.js";
|
|
3
2
|
import Node from "../core/Node.js";
|
|
4
3
|
import VarNode from "../core/VarNode.js";
|
|
@@ -10,16 +9,31 @@ export const normalLocal: ShaderNodeObject<VarNode>;
|
|
|
10
9
|
|
|
11
10
|
export const normalFlat: ShaderNodeObject<VarNode>;
|
|
12
11
|
|
|
12
|
+
export const normalViewGeometry: ShaderNodeObject<VarNode>;
|
|
13
|
+
|
|
14
|
+
export const normalWorldGeometry: ShaderNodeObject<VarNode>;
|
|
15
|
+
|
|
13
16
|
export const normalView: ShaderNodeObject<VarNode>;
|
|
14
17
|
|
|
15
18
|
export const normalWorld: ShaderNodeObject<VarNode>;
|
|
16
19
|
|
|
20
|
+
export const clearcoatNormalView: ShaderNodeObject<VarNode>;
|
|
21
|
+
|
|
22
|
+
export const transformNormal: (normal: Node, matrix?: Node) => ShaderNodeObject<Node>;
|
|
23
|
+
|
|
24
|
+
export const transformNormalToView: (normal: Node) => ShaderNodeObject<Node>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated since r178. Use `normalView` instead.
|
|
28
|
+
*/
|
|
17
29
|
export const transformedNormalView: ShaderNodeObject<VarNode>;
|
|
18
30
|
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated since r178. Use `normalWorld` instead.
|
|
33
|
+
*/
|
|
19
34
|
export const transformedNormalWorld: ShaderNodeObject<VarNode>;
|
|
20
35
|
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated since r178. Use `clearcoatNormalView` instead.
|
|
38
|
+
*/
|
|
21
39
|
export const transformedClearcoatNormalView: ShaderNodeObject<VarNode>;
|
|
22
|
-
|
|
23
|
-
export const transformNormal: (normal: Node, matrix?: Node) => ShaderNodeObject<Node>;
|
|
24
|
-
|
|
25
|
-
export const transformNormalToView: (normal: Node) => ShaderNodeObject<Node>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import StorageBufferAttribute from "../../renderers/common/StorageBufferAttribute.js";
|
|
2
2
|
import StorageInstancedBufferAttribute from "../../renderers/common/StorageInstancedBufferAttribute.js";
|
|
3
3
|
import { NodeAccess } from "../core/constants.js";
|
|
4
|
+
import Node from "../core/Node.js";
|
|
4
5
|
import { Struct } from "../core/StructNode.js";
|
|
5
6
|
import StructTypeNode from "../core/StructTypeNode.js";
|
|
6
|
-
import {
|
|
7
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
7
8
|
import StorageArrayElementNode from "../utils/StorageArrayElementNode.js";
|
|
8
9
|
import BufferNode from "./BufferNode.js";
|
|
9
10
|
|
|
@@ -24,7 +25,7 @@ export default class StorageBufferNode extends BufferNode<StorageBufferAttribute
|
|
|
24
25
|
bufferCount?: number,
|
|
25
26
|
);
|
|
26
27
|
|
|
27
|
-
element(indexNode:
|
|
28
|
+
element(indexNode: Node | number): ShaderNodeObject<StorageArrayElementNode>;
|
|
28
29
|
|
|
29
30
|
setPBO(value: boolean): this;
|
|
30
31
|
|
|
@@ -2,7 +2,7 @@ import { Texture } from "../../textures/Texture.js";
|
|
|
2
2
|
import { NodeAccess } from "../core/constants.js";
|
|
3
3
|
import Node from "../core/Node.js";
|
|
4
4
|
import NodeBuilder from "../core/NodeBuilder.js";
|
|
5
|
-
import {
|
|
5
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
6
6
|
import TextureNode from "./TextureNode.js";
|
|
7
7
|
|
|
8
8
|
export default class StorageTextureNode extends TextureNode {
|
|
@@ -31,12 +31,12 @@ export default class StorageTextureNode extends TextureNode {
|
|
|
31
31
|
|
|
32
32
|
export const storageTexture: (
|
|
33
33
|
value: Texture,
|
|
34
|
-
uvNode?:
|
|
35
|
-
storeNode?:
|
|
34
|
+
uvNode?: Node | null,
|
|
35
|
+
storeNode?: Node,
|
|
36
36
|
) => ShaderNodeObject<StorageTextureNode>;
|
|
37
37
|
|
|
38
38
|
export const textureStore: (
|
|
39
39
|
value: Texture,
|
|
40
|
-
uvNode?:
|
|
41
|
-
storeNode?:
|
|
40
|
+
uvNode?: Node | null,
|
|
41
|
+
storeNode?: Node,
|
|
42
42
|
) => ShaderNodeObject<StorageTextureNode>;
|
|
@@ -8,5 +8,3 @@ export const tangentGeometry: ShaderNodeObject<AttributeNode>;
|
|
|
8
8
|
export const tangentLocal: ShaderNodeObject<VaryingNode>;
|
|
9
9
|
export const tangentView: ShaderNodeObject<MathNode>;
|
|
10
10
|
export const tangentWorld: ShaderNodeObject<MathNode>;
|
|
11
|
-
export const transformedTangentView: ShaderNodeObject<VarNode>;
|
|
12
|
-
export const transformedTangentWorld: ShaderNodeObject<MathNode>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import Node from "../core/Node.js";
|
|
2
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Tangent vector in view space, computed dynamically from geometry and UV derivatives.
|
|
6
|
+
* Useful for normal mapping without precomputed tangents.
|
|
7
|
+
*
|
|
8
|
+
* Reference: http://www.thetenthplanet.de/archives/1180
|
|
9
|
+
*
|
|
10
|
+
* @tsl
|
|
11
|
+
*/
|
|
12
|
+
export const tangentViewFrame: ShaderNodeObject<Node>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Bitangent vector in view space, computed dynamically from geometry and UV derivatives.
|
|
16
|
+
* Complements the tangentViewFrame for constructing the tangent space basis.
|
|
17
|
+
*
|
|
18
|
+
* Reference: http://www.thetenthplanet.de/archives/1180
|
|
19
|
+
*
|
|
20
|
+
* @tsl
|
|
21
|
+
*/
|
|
22
|
+
export const bitangentViewFrame: ShaderNodeObject<Node>;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { CubeTexture } from "../../textures/CubeTexture.js";
|
|
2
1
|
import { Texture } from "../../textures/Texture.js";
|
|
3
2
|
import Node from "../core/Node.js";
|
|
4
|
-
import {
|
|
3
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
4
|
import TextureNode from "./TextureNode.js";
|
|
6
5
|
|
|
7
6
|
export default class Texture3DNode extends TextureNode {
|
|
8
7
|
readonly isTexture3DNode: true;
|
|
9
8
|
|
|
10
9
|
constructor(value: Texture, uvNode?: ShaderNodeObject<Node> | null, levelNode?: ShaderNodeObject<Node> | null);
|
|
10
|
+
|
|
11
|
+
normal(uvNode: Node): ShaderNodeObject<Node>;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export const texture3D: (
|
|
14
15
|
value: Texture,
|
|
15
|
-
uvNode?:
|
|
16
|
-
levelNode?:
|
|
16
|
+
uvNode?: Node | null,
|
|
17
|
+
levelNode?: Node | number | null,
|
|
17
18
|
) => ShaderNodeObject<Texture3DNode>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const textureBicubicLevel: (textureNode: Node, lodNode: Node) => ShaderNodeObject<Node>;
|
|
5
|
+
|
|
6
|
+
export const textureBicubic: (textureNode: Node, strength: Node) => 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 UniformNode from "../core/UniformNode.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
5
|
|
|
6
6
|
export default class TextureNode extends UniformNode<Texture> {
|
|
7
7
|
readonly isTextureNode: true;
|
|
@@ -19,7 +19,7 @@ export default class TextureNode extends UniformNode<Texture> {
|
|
|
19
19
|
referenceNode: Node | null;
|
|
20
20
|
|
|
21
21
|
constructor(
|
|
22
|
-
value
|
|
22
|
+
value?: Texture,
|
|
23
23
|
uvNode?: ShaderNodeObject<Node> | null,
|
|
24
24
|
levelNode?: ShaderNodeObject<Node> | null,
|
|
25
25
|
biasNode?: ShaderNodeObject<Node> | null,
|
|
@@ -34,38 +34,43 @@ export default class TextureNode extends UniformNode<Texture> {
|
|
|
34
34
|
/**
|
|
35
35
|
* @deprecated
|
|
36
36
|
*/
|
|
37
|
-
uv(uvNode:
|
|
37
|
+
uv(uvNode: Node): ShaderNodeObject<Node>;
|
|
38
38
|
|
|
39
|
-
sample(uvNode:
|
|
39
|
+
sample(uvNode: Node): ShaderNodeObject<Node>;
|
|
40
40
|
|
|
41
|
-
blur(amountNode:
|
|
41
|
+
blur(amountNode: Node): ShaderNodeObject<Node>;
|
|
42
42
|
|
|
43
|
-
level(levelNode:
|
|
43
|
+
level(levelNode: Node): ShaderNodeObject<Node>;
|
|
44
44
|
|
|
45
|
-
size(levelNode:
|
|
45
|
+
size(levelNode: Node): ShaderNodeObject<Node>;
|
|
46
46
|
|
|
47
|
-
bias(biasNode:
|
|
47
|
+
bias(biasNode: Node): ShaderNodeObject<Node>;
|
|
48
48
|
|
|
49
|
-
compare(compareNode:
|
|
49
|
+
compare(compareNode: Node): ShaderNodeObject<Node>;
|
|
50
50
|
|
|
51
|
-
grad(gradeNodeX:
|
|
51
|
+
grad(gradeNodeX: Node, gradeNodeY: Node): ShaderNodeObject<Node>;
|
|
52
52
|
|
|
53
|
-
depth(depthNode:
|
|
53
|
+
depth(depthNode: Node): ShaderNodeObject<Node>;
|
|
54
54
|
|
|
55
55
|
clone(): this;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export const texture: (
|
|
59
|
-
value
|
|
60
|
-
uvNode?:
|
|
61
|
-
levelNode?:
|
|
62
|
-
biasNode?:
|
|
59
|
+
value?: Texture,
|
|
60
|
+
uvNode?: Node | null,
|
|
61
|
+
levelNode?: Node | number | null,
|
|
62
|
+
biasNode?: Node | null,
|
|
63
63
|
) => ShaderNodeObject<TextureNode>;
|
|
64
|
+
|
|
65
|
+
export const uniformTexture: (
|
|
66
|
+
value?: Texture,
|
|
67
|
+
) => ShaderNodeObject<TextureNode>;
|
|
68
|
+
|
|
64
69
|
export const textureLoad: (
|
|
65
|
-
value
|
|
66
|
-
uvNode?:
|
|
67
|
-
levelNode?:
|
|
68
|
-
biasNode?:
|
|
70
|
+
value?: Texture,
|
|
71
|
+
uvNode?: Node,
|
|
72
|
+
levelNode?: Node | number,
|
|
73
|
+
biasNode?: Node,
|
|
69
74
|
) => ShaderNodeObject<TextureNode>;
|
|
70
75
|
|
|
71
76
|
export const sampler: (value: Texture | TextureNode) => ShaderNodeObject<Node>;
|