@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
three/src/textures/Source.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Vector3 } from "../math/Vector3.js";
|
|
2
|
+
|
|
1
3
|
export type SerializedImage =
|
|
2
4
|
| string
|
|
3
5
|
| {
|
|
@@ -18,12 +20,6 @@ export class SourceJSON {
|
|
|
18
20
|
* @see {@link https://github.com/mrdoob/three.js/blob/master/src/textures/Source.js | Source}
|
|
19
21
|
*/
|
|
20
22
|
export class Source {
|
|
21
|
-
/**
|
|
22
|
-
* Create a new instance of {@link Source}
|
|
23
|
-
* @param data The data definition of a texture. Default `null`
|
|
24
|
-
*/
|
|
25
|
-
constructor(data: any);
|
|
26
|
-
|
|
27
23
|
/**
|
|
28
24
|
* Flag to check if a given object is of type {@link Source}.
|
|
29
25
|
* @remarks This is a _constant_ value
|
|
@@ -33,6 +29,12 @@ export class Source {
|
|
|
33
29
|
|
|
34
30
|
readonly id: number;
|
|
35
31
|
|
|
32
|
+
/**
|
|
33
|
+
* {@link http://en.wikipedia.org/wiki/Universally_unique_identifier | UUID} of this object instance.
|
|
34
|
+
* @remarks This gets automatically assigned and shouldn't be edited.
|
|
35
|
+
*/
|
|
36
|
+
uuid: string;
|
|
37
|
+
|
|
36
38
|
/**
|
|
37
39
|
* The actual data of a texture.
|
|
38
40
|
* @remarks The type of this property depends on the texture that uses this instance.
|
|
@@ -49,23 +51,25 @@ export class Source {
|
|
|
49
51
|
dataReady: boolean;
|
|
50
52
|
|
|
51
53
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
+
* This starts at `0` and counts how many times {@link needsUpdate | .needsUpdate} is set to `true`.
|
|
55
|
+
* @remarks Expects a `Integer`
|
|
56
|
+
* @defaultValue `0`
|
|
54
57
|
*/
|
|
55
|
-
|
|
58
|
+
version: number;
|
|
56
59
|
|
|
57
60
|
/**
|
|
58
|
-
*
|
|
59
|
-
* @
|
|
61
|
+
* Create a new instance of {@link Source}
|
|
62
|
+
* @param data The data definition of a texture. Default `null`
|
|
60
63
|
*/
|
|
61
|
-
|
|
64
|
+
constructor(data: any);
|
|
65
|
+
|
|
66
|
+
getSize(target: Vector3): Vector3;
|
|
62
67
|
|
|
63
68
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* @defaultValue `0`
|
|
69
|
+
* When the property is set to `true`, the engine allocates the memory for the texture (if necessary) and triggers
|
|
70
|
+
* the actual texture upload to the GPU next time the source is used.
|
|
67
71
|
*/
|
|
68
|
-
|
|
72
|
+
set needsUpdate(value: boolean);
|
|
69
73
|
|
|
70
74
|
/**
|
|
71
75
|
* Convert the data {@link Source} to three.js {@link https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 | JSON Object/Scene format}.
|
three/src/textures/Texture.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AnyMapping,
|
|
3
3
|
AnyPixelFormat,
|
|
4
|
+
ColorSpace,
|
|
4
5
|
MagnificationTextureFilter,
|
|
5
6
|
Mapping,
|
|
6
7
|
MinificationTextureFilter,
|
|
@@ -17,6 +18,32 @@ import { CompressedTextureMipmap } from "./CompressedTexture.js";
|
|
|
17
18
|
import { CubeTexture } from "./CubeTexture.js";
|
|
18
19
|
import { Source } from "./Source.js";
|
|
19
20
|
|
|
21
|
+
// NOTE: DOM upload fields are not implemented where parameters are accepted.
|
|
22
|
+
export interface TextureParameters {
|
|
23
|
+
mapping?: AnyMapping | undefined;
|
|
24
|
+
// image?: TexImageSource | OffscreenCanvas | undefined;
|
|
25
|
+
// channel?: number | undefined;
|
|
26
|
+
|
|
27
|
+
wrapS?: Wrapping | undefined;
|
|
28
|
+
wrapT?: Wrapping | undefined;
|
|
29
|
+
wrapR?: Wrapping | undefined;
|
|
30
|
+
|
|
31
|
+
format?: PixelFormat | undefined;
|
|
32
|
+
internalFormat?: PixelFormatGPU | null | undefined;
|
|
33
|
+
type?: TextureDataType | undefined;
|
|
34
|
+
colorSpace?: ColorSpace | undefined;
|
|
35
|
+
|
|
36
|
+
magFilter?: MagnificationTextureFilter | undefined;
|
|
37
|
+
minFilter?: MinificationTextureFilter | undefined;
|
|
38
|
+
anisotropy?: number | undefined;
|
|
39
|
+
|
|
40
|
+
flipY?: boolean | undefined;
|
|
41
|
+
|
|
42
|
+
generateMipmaps?: boolean | undefined;
|
|
43
|
+
// premultiplyAlpha?: boolean | undefined;
|
|
44
|
+
// unpackAlignment?: number | undefined;
|
|
45
|
+
}
|
|
46
|
+
|
|
20
47
|
export interface TextureJSON {
|
|
21
48
|
metadata: { version: number; type: string; generator: string };
|
|
22
49
|
|
|
@@ -99,7 +126,7 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
|
|
|
99
126
|
format?: PixelFormat,
|
|
100
127
|
type?: TextureDataType,
|
|
101
128
|
anisotropy?: number,
|
|
102
|
-
colorSpace?:
|
|
129
|
+
colorSpace?: ColorSpace,
|
|
103
130
|
);
|
|
104
131
|
|
|
105
132
|
/**
|
|
@@ -151,6 +178,21 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
|
|
|
151
178
|
*/
|
|
152
179
|
source: Source;
|
|
153
180
|
|
|
181
|
+
/**
|
|
182
|
+
* The width of the texture in pixels.
|
|
183
|
+
*/
|
|
184
|
+
get width(): number;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* The height of the texture in pixels.
|
|
188
|
+
*/
|
|
189
|
+
get height(): number;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The depth of the texture in pixels.
|
|
193
|
+
*/
|
|
194
|
+
get depth(): number;
|
|
195
|
+
|
|
154
196
|
/**
|
|
155
197
|
* An image object, typically created using the {@link THREE.TextureLoader.load | TextureLoader.load()} method.
|
|
156
198
|
* @remarks This can be any image (e.g., PNG, JPG, GIF, DDS) or video (e.g., MP4, OGG/OGV) type supported by three.js.
|
|
@@ -382,7 +424,7 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
|
|
|
382
424
|
*
|
|
383
425
|
* @default false
|
|
384
426
|
*/
|
|
385
|
-
|
|
427
|
+
isArrayTexture: boolean;
|
|
386
428
|
|
|
387
429
|
/**
|
|
388
430
|
* An object that can be used to store custom data about the texture.
|
|
@@ -391,6 +433,12 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
|
|
|
391
433
|
*/
|
|
392
434
|
userData: Record<string, any>;
|
|
393
435
|
|
|
436
|
+
/**
|
|
437
|
+
* This can be used to only update a subregion or specific rows of the texture (for example, just the
|
|
438
|
+
* first 3 rows). Use the `addUpdateRange()` function to add ranges to this array.
|
|
439
|
+
*/
|
|
440
|
+
updateRanges: Array<{ start: number; count: number }>;
|
|
441
|
+
|
|
394
442
|
/**
|
|
395
443
|
* This starts at `0` and counts how many times {@link needsUpdate | .needsUpdate} is set to `true`.
|
|
396
444
|
* @remarks Expects a `Integer`
|
|
@@ -461,6 +509,19 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
|
|
|
461
509
|
*/
|
|
462
510
|
updateMatrix(): void;
|
|
463
511
|
|
|
512
|
+
/**
|
|
513
|
+
* Adds a range of data in the data texture to be updated on the GPU.
|
|
514
|
+
*
|
|
515
|
+
* @param {number} start - Position at which to start update.
|
|
516
|
+
* @param {number} count - The number of components to update.
|
|
517
|
+
*/
|
|
518
|
+
addUpdateRange(start: number, count: number): void;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Clears the update ranges.
|
|
522
|
+
*/
|
|
523
|
+
clearUpdateRanges(): void;
|
|
524
|
+
|
|
464
525
|
/**
|
|
465
526
|
* Make copy of the texture. Note this is not a "deep copy", the image is shared. Cloning the texture automatically
|
|
466
527
|
* marks it for texture upload.
|
|
@@ -469,6 +530,12 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
|
|
|
469
530
|
|
|
470
531
|
copy(source: Texture): this;
|
|
471
532
|
|
|
533
|
+
/**
|
|
534
|
+
* Sets this texture's properties based on `values`.
|
|
535
|
+
* @param values - A container with texture parameters.
|
|
536
|
+
*/
|
|
537
|
+
setValues(values: TextureParameters): void;
|
|
538
|
+
|
|
472
539
|
/**
|
|
473
540
|
* Convert the texture to three.js {@link https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 | JSON Object/Scene format}.
|
|
474
541
|
* @param meta Optional object containing metadata.
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Camera, Scene, WebGLRenderer } from "three";
|
|
2
|
-
|
|
3
|
-
export class PeppersGhostEffect {
|
|
4
|
-
constructor(renderer: WebGLRenderer);
|
|
5
|
-
cameraDistance: number;
|
|
6
|
-
reflectFromAbove: boolean;
|
|
7
|
-
|
|
8
|
-
render(scene: Scene, camera: Camera): void;
|
|
9
|
-
setSize(width: number, height: number): void;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { RenderTarget, RenderTargetOptions } from "./RenderTarget.js";
|
|
2
|
-
|
|
3
|
-
declare class RenderTargetArray extends RenderTarget {
|
|
4
|
-
readonly isRenderTargetArray: true;
|
|
5
|
-
|
|
6
|
-
constructor(width?: number, height?: number, depth?: number, options?: RenderTargetOptions);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { RenderTargetArray };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Node, TempNode } from "../Nodes.js";
|
|
2
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
|
-
|
|
4
|
-
export default class EquirectUVNode extends TempNode {
|
|
5
|
-
constructor(dirNode?: ShaderNodeObject<Node>);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const equirectUV: (dirNode?: NodeRepresentation) => ShaderNodeObject<EquirectUVNode>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import TextureNode from "../accessors/TextureNode.js";
|
|
2
|
-
import Node from "../core/Node.js";
|
|
3
|
-
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
|
-
|
|
5
|
-
export default class TriplanarTexturesNode extends Node {
|
|
6
|
-
textureXNode: TextureNode;
|
|
7
|
-
textureYNode: TextureNode | null;
|
|
8
|
-
textureZNode: TextureNode | null;
|
|
9
|
-
|
|
10
|
-
scaleNode: ShaderNodeObject<Node>;
|
|
11
|
-
|
|
12
|
-
positionNode: ShaderNodeObject<Node>;
|
|
13
|
-
normalNode: ShaderNodeObject<Node>;
|
|
14
|
-
|
|
15
|
-
constructor(
|
|
16
|
-
textureXNode: Node,
|
|
17
|
-
textureYNode?: TextureNode | null,
|
|
18
|
-
textureZNode?: TextureNode | null,
|
|
19
|
-
scaleNode?: ShaderNodeObject<Node>,
|
|
20
|
-
positionNode?: ShaderNodeObject<Node>,
|
|
21
|
-
normalNode?: ShaderNodeObject<Node>,
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export const triplanarTextures: (
|
|
26
|
-
textureXNode: NodeRepresentation,
|
|
27
|
-
textureYNode?: NodeRepresentation,
|
|
28
|
-
textureZNode?: NodeRepresentation,
|
|
29
|
-
scaleNode?: NodeRepresentation,
|
|
30
|
-
positionNode?: NodeRepresentation,
|
|
31
|
-
normalNode?: NodeRepresentation,
|
|
32
|
-
) => ShaderNodeObject<TriplanarTexturesNode>;
|
|
33
|
-
export const triplanarTexture: (
|
|
34
|
-
texture: NodeRepresentation,
|
|
35
|
-
...params: NodeRepresentation[]
|
|
36
|
-
) => ShaderNodeObject<TriplanarTexturesNode>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DepthTexture } from "./DepthTexture.js";
|
|
2
|
-
|
|
3
|
-
declare class DepthArrayTexture extends DepthTexture {
|
|
4
|
-
readonly isDepthArrayTexture: true;
|
|
5
|
-
layerUpdates: Set<number>;
|
|
6
|
-
|
|
7
|
-
constructor(width?: number, height?: number, depth?: number);
|
|
8
|
-
|
|
9
|
-
addLayerUpdate(layerIndex: number): void;
|
|
10
|
-
|
|
11
|
-
clearLayerUpdates(): void;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { DepthArrayTexture };
|