@types/three 0.157.0 → 0.157.1
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 +2 -3
- three/index.d.ts +0 -6
- three/package.json +20 -20
- three/examples/jsm/animation/CCDIKSolver.d.ts +0 -30
- three/examples/jsm/animation/MMDAnimationHelper.d.ts +0 -105
- three/examples/jsm/animation/MMDPhysics.d.ts +0 -124
- three/examples/jsm/cameras/CinematicCamera.d.ts +0 -41
- three/examples/jsm/capabilities/WebGL.d.ts +0 -9
- three/examples/jsm/controls/FirstPersonControls.d.ts +0 -31
- three/examples/jsm/controls/OrbitControls.d.ts +0 -286
- three/examples/jsm/controls/TrackballControls.d.ts +0 -58
- three/examples/jsm/effects/OutlineEffect.d.ts +0 -36
- three/examples/jsm/environments/RoomEnvironment.d.ts +0 -6
- three/examples/jsm/exporters/PLYExporter.d.ts +0 -30
- three/examples/jsm/exporters/STLExporter.d.ts +0 -21
- three/examples/jsm/geometries/TextGeometry.d.ts +0 -115
- three/examples/jsm/helpers/RectAreaLightHelper.d.ts +0 -10
- three/examples/jsm/helpers/ViewHelper.d.ts +0 -15
- three/examples/jsm/libs/fflate.module.d.ts +0 -1
- three/examples/jsm/libs/lil-gui.module.min.d.ts +0 -609
- three/examples/jsm/libs/tween.module.d.ts +0 -219
- three/examples/jsm/lights/RectAreaLightUniformsLib.d.ts +0 -3
- three/examples/jsm/lines/Line2.d.ts +0 -11
- three/examples/jsm/lines/LineGeometry.d.ts +0 -10
- three/examples/jsm/lines/LineMaterial.d.ts +0 -31
- three/examples/jsm/lines/LineSegments2.d.ts +0 -14
- three/examples/jsm/lines/LineSegmentsGeometry.d.ts +0 -23
- three/examples/jsm/loaders/DDSLoader.d.ts +0 -16
- three/examples/jsm/loaders/DRACOLoader.d.ts +0 -19
- three/examples/jsm/loaders/FontLoader.d.ts +0 -27
- three/examples/jsm/loaders/GLTFLoader.d.ts +0 -147
- three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +0 -18
- three/examples/jsm/loaders/KTX2Loader.d.ts +0 -16
- three/examples/jsm/loaders/LDrawLoader.d.ts +0 -19
- three/examples/jsm/loaders/MMDLoader.d.ts +0 -56
- three/examples/jsm/loaders/MTLLoader.d.ts +0 -104
- three/examples/jsm/loaders/OBJLoader.d.ts +0 -10
- three/examples/jsm/loaders/PCDLoader.d.ts +0 -8
- three/examples/jsm/loaders/RGBELoader.d.ts +0 -19
- three/examples/jsm/loaders/RGBMLoader.d.ts +0 -32
- three/examples/jsm/loaders/SVGLoader.d.ts +0 -68
- three/examples/jsm/loaders/TGALoader.d.ts +0 -7
- three/examples/jsm/loaders/TTFLoader.d.ts +0 -8
- three/examples/jsm/loaders/USDZLoader.d.ts +0 -11
- three/examples/jsm/materials/MeshGouraudMaterial.d.ts +0 -17
- three/examples/jsm/modifiers/TessellateModifier.d.ts +0 -9
- three/examples/jsm/nodes/Nodes.d.ts +0 -149
- three/examples/jsm/nodes/accessors/BitangentNode.d.ts +0 -18
- three/examples/jsm/nodes/accessors/BufferNode.d.ts +0 -11
- three/examples/jsm/nodes/accessors/CameraNode.d.ts +0 -12
- three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +0 -13
- three/examples/jsm/nodes/accessors/InstanceNode.d.ts +0 -9
- three/examples/jsm/nodes/accessors/MaterialNode.d.ts +0 -23
- three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +0 -6
- three/examples/jsm/nodes/accessors/ModelNode.d.ts +0 -9
- three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +0 -6
- three/examples/jsm/nodes/accessors/NormalNode.d.ts +0 -12
- three/examples/jsm/nodes/accessors/Object3DNode.d.ts +0 -22
- three/examples/jsm/nodes/accessors/PointUVNode.d.ts +0 -7
- three/examples/jsm/nodes/accessors/PositionNode.d.ts +0 -21
- three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +0 -13
- three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +0 -8
- three/examples/jsm/nodes/accessors/SkinningNode.d.ts +0 -13
- three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +0 -6
- three/examples/jsm/nodes/accessors/TangentNode.d.ts +0 -18
- three/examples/jsm/nodes/accessors/TextureNode.d.ts +0 -14
- three/examples/jsm/nodes/accessors/UVNode.d.ts +0 -8
- three/examples/jsm/nodes/accessors/UserDataNode.d.ts +0 -7
- three/examples/jsm/nodes/code/CodeNode.d.ts +0 -15
- three/examples/jsm/nodes/code/ExpressionNode.d.ts +0 -7
- three/examples/jsm/nodes/code/FunctionCallNode.d.ts +0 -13
- three/examples/jsm/nodes/code/FunctionNode.d.ts +0 -17
- three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +0 -8
- three/examples/jsm/nodes/core/AttributeNode.d.ts +0 -9
- three/examples/jsm/nodes/core/BypassNode.d.ts +0 -9
- three/examples/jsm/nodes/core/CacheNode.d.ts +0 -10
- three/examples/jsm/nodes/core/ConstNode.d.ts +0 -10
- three/examples/jsm/nodes/core/ContextNode.d.ts +0 -10
- three/examples/jsm/nodes/core/InputNode.d.ts +0 -16
- three/examples/jsm/nodes/core/Node.d.ts +0 -31
- three/examples/jsm/nodes/core/NodeAttribute.d.ts +0 -6
- three/examples/jsm/nodes/core/NodeBuilder.d.ts +0 -138
- three/examples/jsm/nodes/core/NodeCache.d.ts +0 -9
- three/examples/jsm/nodes/core/NodeCode.d.ts +0 -4
- three/examples/jsm/nodes/core/NodeFrame.d.ts +0 -19
- three/examples/jsm/nodes/core/NodeFunction.d.ts +0 -13
- three/examples/jsm/nodes/core/NodeFunctionInput.d.ts +0 -7
- three/examples/jsm/nodes/core/NodeKeywords.d.ts +0 -14
- three/examples/jsm/nodes/core/NodeParser.d.ts +0 -5
- three/examples/jsm/nodes/core/NodeUniform.d.ts +0 -13
- three/examples/jsm/nodes/core/NodeUtils.d.ts +0 -13
- three/examples/jsm/nodes/core/NodeVar.d.ts +0 -6
- three/examples/jsm/nodes/core/NodeVarying.d.ts +0 -8
- three/examples/jsm/nodes/core/PropertyNode.d.ts +0 -6
- three/examples/jsm/nodes/core/StackNode.d.ts +0 -11
- three/examples/jsm/nodes/core/TempNode.d.ts +0 -11
- three/examples/jsm/nodes/core/UniformNode.d.ts +0 -10
- three/examples/jsm/nodes/core/VarNode.d.ts +0 -16
- three/examples/jsm/nodes/core/VaryingNode.d.ts +0 -8
- three/examples/jsm/nodes/core/constants.d.ts +0 -78
- three/examples/jsm/nodes/display/BlendModeNode.d.ts +0 -32
- three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +0 -20
- three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +0 -18
- three/examples/jsm/nodes/display/FrontFacingNode.d.ts +0 -6
- three/examples/jsm/nodes/display/NormalMapNode.d.ts +0 -12
- three/examples/jsm/nodes/display/PosterizeNode.d.ts +0 -8
- three/examples/jsm/nodes/display/ToneMappingNode.d.ts +0 -14
- three/examples/jsm/nodes/display/ViewportNode.d.ts +0 -23
- three/examples/jsm/nodes/fog/FogExp2Node.d.ts +0 -9
- three/examples/jsm/nodes/fog/FogNode.d.ts +0 -10
- three/examples/jsm/nodes/fog/FogRangeNode.d.ts +0 -10
- three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +0 -6
- three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +0 -6
- three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +0 -10
- three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +0 -9
- three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +0 -6
- three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +0 -6
- three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +0 -11
- three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +0 -5
- three/examples/jsm/nodes/functions/material/getRoughness.d.ts +0 -6
- three/examples/jsm/nodes/geometry/RangeNode.d.ts +0 -13
- three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +0 -11
- three/examples/jsm/nodes/lighting/AONode.d.ts +0 -8
- three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +0 -10
- three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts +0 -8
- three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +0 -13
- three/examples/jsm/nodes/lighting/LightUtils.d.ts +0 -4
- three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +0 -15
- three/examples/jsm/nodes/lighting/LightingNode.d.ts +0 -5
- three/examples/jsm/nodes/lighting/LightsNode.d.ts +0 -19
- three/examples/jsm/nodes/lighting/PointLightNode.d.ts +0 -10
- three/examples/jsm/nodes/lighting/SpotLightNode.d.ts +0 -15
- three/examples/jsm/nodes/loaders/NodeLoader.d.ts +0 -14
- three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +0 -8
- three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +0 -9
- three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +0 -9
- three/examples/jsm/nodes/materials/Materials.d.ts +0 -17
- three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +0 -10
- three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +0 -22
- three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +0 -18
- three/examples/jsm/nodes/materials/NodeMaterial.d.ts +0 -38
- three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +0 -15
- three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +0 -23
- three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts +0 -94
- three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts +0 -4
- three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +0 -6
- three/examples/jsm/nodes/math/CondNode.d.ts +0 -9
- three/examples/jsm/nodes/math/MathNode.d.ts +0 -115
- three/examples/jsm/nodes/math/OperatorNode.d.ts +0 -31
- three/examples/jsm/nodes/procedural/CheckerNode.d.ts +0 -6
- three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +0 -156
- three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +0 -310
- three/examples/jsm/nodes/shadernode/ShaderNodeElements.d.ts +0 -166
- three/examples/jsm/nodes/utils/ArrayElementNode.d.ts +0 -9
- three/examples/jsm/nodes/utils/ConvertNode.d.ts +0 -8
- three/examples/jsm/nodes/utils/EquirectUVNode.d.ts +0 -6
- three/examples/jsm/nodes/utils/JoinNode.d.ts +0 -10
- three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +0 -5
- three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +0 -11
- three/examples/jsm/nodes/utils/OscNode.d.ts +0 -19
- three/examples/jsm/nodes/utils/RemapNode.d.ts +0 -13
- three/examples/jsm/nodes/utils/RotateUVNode.d.ts +0 -10
- three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +0 -8
- three/examples/jsm/nodes/utils/SplitNode.d.ts +0 -16
- three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +0 -9
- three/examples/jsm/nodes/utils/TimerNode.d.ts +0 -19
- three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts +0 -22
- three/examples/jsm/objects/GroundProjectedSkybox.d.ts +0 -13
- three/examples/jsm/objects/MarchingCubes.d.ts +0 -76
- three/examples/jsm/objects/Reflector.d.ts +0 -29
- three/examples/jsm/postprocessing/EffectComposer.d.ts +0 -31
- three/examples/jsm/postprocessing/Pass.d.ts +0 -31
- three/examples/jsm/postprocessing/SavePass.d.ts +0 -12
- three/examples/jsm/postprocessing/ShaderPass.d.ts +0 -11
- three/examples/jsm/renderers/CSS3DRenderer.d.ts +0 -26
- three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +0 -17
- three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +0 -37
- three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +0 -3
- three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts +0 -10
- three/examples/jsm/shaders/BokehShader2.d.ts +0 -42
- three/examples/jsm/shaders/ToonShader.d.ts +0 -54
- three/examples/jsm/shaders/VelocityShader.d.ts +0 -13
- three/examples/jsm/textures/FlakesTexture.d.ts +0 -3
- three/examples/jsm/utils/CameraUtils.d.ts +0 -9
- three/examples/jsm/utils/GeometryUtils.d.ts +0 -25
- three/examples/jsm/utils/LDrawUtils.d.ts +0 -5
- three/examples/jsm/utils/ShadowMapViewer.d.ts +0 -24
- three/examples/jsm/webxr/VRButton.d.ts +0 -5
- three/examples/jsm/webxr/XRButton.d.ts +0 -6
- three/examples/jsm/webxr/XRControllerModelFactory.d.ts +0 -21
- three/examples/jsm/webxr/XRHandMeshModel.d.ts +0 -11
- three/examples/jsm/webxr/XRHandModelFactory.d.ts +0 -25
- three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts +0 -24
- three/src/extras/Earcut.d.ts +0 -15
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Material,
|
|
3
|
-
LoadingManager,
|
|
4
|
-
Mapping,
|
|
5
|
-
Loader,
|
|
6
|
-
BufferGeometry,
|
|
7
|
-
Side,
|
|
8
|
-
Texture,
|
|
9
|
-
Vector2,
|
|
10
|
-
Wrapping,
|
|
11
|
-
} from '../../../src/Three.js';
|
|
12
|
-
|
|
13
|
-
export interface MaterialCreatorOptions {
|
|
14
|
-
/**
|
|
15
|
-
* side: Which side to apply the material
|
|
16
|
-
* THREE.FrontSide (default), THREE.BackSide, THREE.DoubleSide
|
|
17
|
-
*/
|
|
18
|
-
side?: Side | undefined;
|
|
19
|
-
/*
|
|
20
|
-
* wrap: What type of wrapping to apply for textures
|
|
21
|
-
* THREE.RepeatWrapping (default), THREE.ClampToEdgeWrapping, THREE.MirroredRepeatWrapping
|
|
22
|
-
*/
|
|
23
|
-
wrap?: Wrapping | undefined;
|
|
24
|
-
/*
|
|
25
|
-
* normalizeRGB: RGBs need to be normalized to 0-1 from 0-255
|
|
26
|
-
* Default: false, assumed to be already normalized
|
|
27
|
-
*/
|
|
28
|
-
normalizeRGB?: boolean | undefined;
|
|
29
|
-
/*
|
|
30
|
-
* ignoreZeroRGBs: Ignore values of RGBs (Ka,Kd,Ks) that are all 0's
|
|
31
|
-
* Default: false
|
|
32
|
-
*/
|
|
33
|
-
ignoreZeroRGBs?: boolean | undefined;
|
|
34
|
-
/*
|
|
35
|
-
* invertTrProperty: Use values 1 of Tr field for fully opaque. This option is useful for obj
|
|
36
|
-
* exported from 3ds MAX, vcglib or meshlab.
|
|
37
|
-
* Default: false
|
|
38
|
-
*/
|
|
39
|
-
invertTrProperty?: boolean | undefined;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export class MTLLoader extends Loader<MTLLoader.MaterialCreator> {
|
|
43
|
-
constructor(manager?: LoadingManager);
|
|
44
|
-
materialOptions: MaterialCreatorOptions;
|
|
45
|
-
|
|
46
|
-
parse(text: string, path: string): MTLLoader.MaterialCreator;
|
|
47
|
-
setMaterialOptions(value: MaterialCreatorOptions): void;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface MaterialInfo {
|
|
51
|
-
ks?: number[] | undefined;
|
|
52
|
-
kd?: number[] | undefined;
|
|
53
|
-
ke?: number[] | undefined;
|
|
54
|
-
map_kd?: string | undefined;
|
|
55
|
-
map_ks?: string | undefined;
|
|
56
|
-
map_ke?: string | undefined;
|
|
57
|
-
norm?: string | undefined;
|
|
58
|
-
map_bump?: string | undefined;
|
|
59
|
-
bump?: string | undefined;
|
|
60
|
-
map_d?: string | undefined;
|
|
61
|
-
ns?: number | undefined;
|
|
62
|
-
d?: number | undefined;
|
|
63
|
-
tr?: number | undefined;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface TexParams {
|
|
67
|
-
scale: Vector2;
|
|
68
|
-
offset: Vector2;
|
|
69
|
-
url: string;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export namespace MTLLoader {
|
|
73
|
-
class MaterialCreator {
|
|
74
|
-
constructor(baseUrl?: string, options?: MaterialCreatorOptions);
|
|
75
|
-
|
|
76
|
-
baseUrl: string;
|
|
77
|
-
options: MaterialCreatorOptions;
|
|
78
|
-
materialsInfo: { [key: string]: MaterialInfo };
|
|
79
|
-
materials: { [key: string]: Material };
|
|
80
|
-
private materialsArray: Material[];
|
|
81
|
-
nameLookup: { [key: string]: number };
|
|
82
|
-
side: Side;
|
|
83
|
-
wrap: Wrapping;
|
|
84
|
-
crossOrigin: string;
|
|
85
|
-
|
|
86
|
-
setCrossOrigin(value: string): this;
|
|
87
|
-
setManager(value: LoadingManager): void;
|
|
88
|
-
setMaterials(materialsInfo: { [key: string]: MaterialInfo }): void;
|
|
89
|
-
convert(materialsInfo: { [key: string]: MaterialInfo }): { [key: string]: MaterialInfo };
|
|
90
|
-
preload(): void;
|
|
91
|
-
getIndex(materialName: string): number;
|
|
92
|
-
getAsArray(): Material[];
|
|
93
|
-
create(materialName: string): Material;
|
|
94
|
-
createMaterial_(materialName: string): Material;
|
|
95
|
-
getTextureParams(value: string, matParams: any): TexParams;
|
|
96
|
-
loadTexture(
|
|
97
|
-
url: string,
|
|
98
|
-
mapping?: Mapping,
|
|
99
|
-
onLoad?: (bufferGeometry: BufferGeometry) => void,
|
|
100
|
-
onProgress?: (event: ProgressEvent) => void,
|
|
101
|
-
onError?: (event: ErrorEvent) => void,
|
|
102
|
-
): Texture;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Loader, LoadingManager, Group } from '../../../src/Three.js';
|
|
2
|
-
import { MTLLoader } from './MTLLoader.js';
|
|
3
|
-
|
|
4
|
-
export class OBJLoader extends Loader<Group> {
|
|
5
|
-
constructor(manager?: LoadingManager);
|
|
6
|
-
materials: MTLLoader.MaterialCreator;
|
|
7
|
-
|
|
8
|
-
parse(data: string): Group;
|
|
9
|
-
setMaterials(materials: MTLLoader.MaterialCreator): this;
|
|
10
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { LoadingManager, DataTextureLoader, TextureDataType, PixelFormat } from '../../../src/Three.js';
|
|
2
|
-
|
|
3
|
-
export interface RGBE {
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
data: Float32Array | Uint8Array;
|
|
7
|
-
header: string;
|
|
8
|
-
gamma: number;
|
|
9
|
-
exposure: number;
|
|
10
|
-
type: TextureDataType;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export class RGBELoader extends DataTextureLoader {
|
|
14
|
-
constructor(manager?: LoadingManager);
|
|
15
|
-
type: TextureDataType;
|
|
16
|
-
|
|
17
|
-
parse(buffer: ArrayBuffer): RGBE;
|
|
18
|
-
setDataType(type: TextureDataType): this;
|
|
19
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { CubeTexture, LoadingManager, DataTextureLoader, PixelFormat, TextureDataType } from '../../../src/Three.js';
|
|
2
|
-
|
|
3
|
-
export interface RGBM {
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
data: Uint16Array | Float32Array;
|
|
7
|
-
header: string;
|
|
8
|
-
format: PixelFormat;
|
|
9
|
-
type: TextureDataType;
|
|
10
|
-
flipY: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export class RGBMLoader extends DataTextureLoader {
|
|
14
|
-
type: TextureDataType;
|
|
15
|
-
|
|
16
|
-
maxRange: number;
|
|
17
|
-
|
|
18
|
-
constructor(manager?: LoadingManager);
|
|
19
|
-
|
|
20
|
-
loadCubemap(
|
|
21
|
-
urls: string[],
|
|
22
|
-
onLoad?: (texture: CubeTexture) => void,
|
|
23
|
-
onProgress?: (event: ProgressEvent) => void,
|
|
24
|
-
onError?: (event: ErrorEvent) => void,
|
|
25
|
-
): CubeTexture;
|
|
26
|
-
|
|
27
|
-
parse(buffer: ArrayBuffer): RGBM;
|
|
28
|
-
|
|
29
|
-
setDataType(dataType: TextureDataType): this;
|
|
30
|
-
|
|
31
|
-
setMaxRange(value: number): this;
|
|
32
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Loader, LoadingManager, ShapePath, BufferGeometry, Vector3, Shape, Vector2 } from '../../../src/Three.js';
|
|
2
|
-
|
|
3
|
-
export interface SVGResultPaths extends ShapePath {
|
|
4
|
-
userData?:
|
|
5
|
-
| {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}
|
|
8
|
-
| undefined;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface SVGResult {
|
|
12
|
-
paths: SVGResultPaths[];
|
|
13
|
-
xml: XMLDocument;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface StrokeStyle {
|
|
17
|
-
strokeColor: string;
|
|
18
|
-
strokeWidth: number;
|
|
19
|
-
strokeLineJoin: string;
|
|
20
|
-
strokeLineCap: string;
|
|
21
|
-
strokeMiterLimit: number;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export class SVGLoader extends Loader<SVGResult> {
|
|
25
|
-
constructor(manager?: LoadingManager);
|
|
26
|
-
|
|
27
|
-
defaultDPI: number;
|
|
28
|
-
defaultUnit: string;
|
|
29
|
-
|
|
30
|
-
parse(text: string): SVGResult;
|
|
31
|
-
|
|
32
|
-
static getStrokeStyle(
|
|
33
|
-
width?: number,
|
|
34
|
-
color?: string,
|
|
35
|
-
lineJoin?: string,
|
|
36
|
-
lineCap?: string,
|
|
37
|
-
miterLimit?: number,
|
|
38
|
-
): StrokeStyle;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Generates a stroke with some witdh around the given path.
|
|
42
|
-
* @remarks The path can be open or closed (last point equals to first point)
|
|
43
|
-
* @param points Array of Vector2D (the path). Minimum 2 points.
|
|
44
|
-
* @param style Object with SVG properties as returned by SVGLoader.getStrokeStyle(), or SVGLoader.parse() in the path.userData.style object
|
|
45
|
-
* @param arcDivisions Arc divisions for round joins and endcaps. (Optional)
|
|
46
|
-
* @param minDistance Points closer to this distance will be merged. (Optional)
|
|
47
|
-
* @returns BufferGeometry with stroke triangles (In plane z = 0). UV coordinates are generated ('u' along path. 'v' across it, from left to right)
|
|
48
|
-
*/
|
|
49
|
-
static pointsToStroke(
|
|
50
|
-
points: Vector2[],
|
|
51
|
-
style: StrokeStyle,
|
|
52
|
-
arcDivisions?: number,
|
|
53
|
-
minDistance?: number,
|
|
54
|
-
): BufferGeometry;
|
|
55
|
-
|
|
56
|
-
static pointsToStrokeWithBuffers(
|
|
57
|
-
points: Vector2[],
|
|
58
|
-
style: StrokeStyle,
|
|
59
|
-
arcDivisions?: number,
|
|
60
|
-
minDistance?: number,
|
|
61
|
-
vertices?: number[],
|
|
62
|
-
normals?: number[],
|
|
63
|
-
uvs?: number[],
|
|
64
|
-
vertexOffset?: number,
|
|
65
|
-
): number;
|
|
66
|
-
|
|
67
|
-
static createShapes(shapePath: ShapePath): Shape[];
|
|
68
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Loader, LoadingManager, Mesh } from '../../../src/Three.js';
|
|
2
|
-
|
|
3
|
-
export class USDAParser {
|
|
4
|
-
parse(text: string): object;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export class USDZLoader extends Loader<Mesh> {
|
|
8
|
-
constructor(manager?: LoadingManager);
|
|
9
|
-
|
|
10
|
-
parse(buffer: ArrayBuffer | string): THREE.Group;
|
|
11
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MeshGouraudMaterial
|
|
3
|
-
*
|
|
4
|
-
* Lambert illumination model with Gouraud (per-vertex) shading
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { ShaderMaterial, ShaderMaterialParameters } from '../../../src/Three.js';
|
|
9
|
-
|
|
10
|
-
export class MeshGouraudMaterial extends ShaderMaterial {
|
|
11
|
-
isMeshGouraudMaterial: true;
|
|
12
|
-
type: 'MeshGouraudMaterial';
|
|
13
|
-
|
|
14
|
-
constructor(parameters?: ShaderMaterialParameters);
|
|
15
|
-
|
|
16
|
-
copy(source: MeshGouraudMaterial): this;
|
|
17
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BufferGeometry } from '../../../src/Three.js';
|
|
2
|
-
|
|
3
|
-
export class TessellateModifier {
|
|
4
|
-
constructor(maxEdgeLength?: number, maxIterations?: number);
|
|
5
|
-
maxEdgeLength: number;
|
|
6
|
-
maxIterations: number;
|
|
7
|
-
|
|
8
|
-
modify<TGeometry extends BufferGeometry>(geometry: TGeometry): TGeometry;
|
|
9
|
-
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
// constants
|
|
2
|
-
export * from './core/constants.js';
|
|
3
|
-
|
|
4
|
-
// core
|
|
5
|
-
export { default as ArrayUniformNode } from './core/ArrayUniformNode.js';
|
|
6
|
-
export { default as AttributeNode } from './core/AttributeNode.js';
|
|
7
|
-
export { default as BypassNode } from './core/BypassNode.js';
|
|
8
|
-
export { default as CacheNode } from './core/CacheNode.js';
|
|
9
|
-
export { default as ConstNode } from './core/ConstNode.js';
|
|
10
|
-
export { default as ContextNode } from './core/ContextNode.js';
|
|
11
|
-
export { default as Node } from './core/Node.js';
|
|
12
|
-
export { default as NodeAttribute } from './core/NodeAttribute.js';
|
|
13
|
-
export { default as NodeBuilder } from './core/NodeBuilder.js';
|
|
14
|
-
export { default as NodeCache } from './core/NodeCache.js';
|
|
15
|
-
export { default as NodeCode } from './core/NodeCode.js';
|
|
16
|
-
export { default as NodeFrame } from './core/NodeFrame.js';
|
|
17
|
-
export { default as NodeFunctionInput } from './core/NodeFunctionInput.js';
|
|
18
|
-
export { default as NodeKeywords } from './core/NodeKeywords.js';
|
|
19
|
-
export { default as NodeUniform } from './core/NodeUniform.js';
|
|
20
|
-
export { default as NodeVar } from './core/NodeVar.js';
|
|
21
|
-
export { default as NodeVarying } from './core/NodeVarying.js';
|
|
22
|
-
export { default as PropertyNode } from './core/PropertyNode.js';
|
|
23
|
-
export { default as StackNode } from './core/StackNode.js';
|
|
24
|
-
export { default as TempNode } from './core/TempNode.js';
|
|
25
|
-
export { default as UniformNode } from './core/UniformNode.js';
|
|
26
|
-
export { default as VarNode } from './core/VarNode.js';
|
|
27
|
-
export { default as VaryingNode } from './core/VaryingNode.js';
|
|
28
|
-
|
|
29
|
-
import * as NodeUtils from './core/NodeUtils.js';
|
|
30
|
-
export { NodeUtils };
|
|
31
|
-
|
|
32
|
-
// math
|
|
33
|
-
export {
|
|
34
|
-
default as MathNode,
|
|
35
|
-
MathNodeMethod1,
|
|
36
|
-
MathNodeMethod2,
|
|
37
|
-
MathNodeMethod3,
|
|
38
|
-
MathNodeMethod,
|
|
39
|
-
} from './math/MathNode.js';
|
|
40
|
-
export { default as OperatorNode, OperatorNodeOp } from './math/OperatorNode.js';
|
|
41
|
-
export { default as CondNode } from './math/CondNode.js';
|
|
42
|
-
|
|
43
|
-
// utils
|
|
44
|
-
export { default as ArrayElementNode } from './utils/ArrayElementNode.js';
|
|
45
|
-
export { default as ConvertNode } from './utils/ConvertNode.js';
|
|
46
|
-
export { default as EquirectUVNode } from './utils/EquirectUVNode.js';
|
|
47
|
-
export { default as JoinNode } from './utils/JoinNode.js';
|
|
48
|
-
export { default as MatcapUVNode } from './utils/MatcapUVNode.js';
|
|
49
|
-
export { default as MaxMipLevelNode } from './utils/MaxMipLevelNode.js';
|
|
50
|
-
export { default as OscNode, OscNodeMethod } from './utils/OscNode.js';
|
|
51
|
-
export { default as RemapNode } from './utils/RemapNode.js';
|
|
52
|
-
export { default as RotateUVNode } from './utils/RotateUVNode.js';
|
|
53
|
-
export { default as SpecularMIPLevelNode } from './utils/SpecularMIPLevelNode.js';
|
|
54
|
-
export { default as SplitNode } from './utils/SplitNode.js';
|
|
55
|
-
export { default as SpriteSheetUVNode } from './utils/SpriteSheetUVNode.js';
|
|
56
|
-
export { default as TimerNode, TimerNodeScope } from './utils/TimerNode.js';
|
|
57
|
-
export { default as TriplanarTexturesNode } from './utils/TriplanarTexturesNode.js';
|
|
58
|
-
|
|
59
|
-
// shader node
|
|
60
|
-
export * from './shadernode/ShaderNodeElements.js';
|
|
61
|
-
|
|
62
|
-
// accessors
|
|
63
|
-
export { default as BitangentNode, BitangentNodeScope } from './accessors/BitangentNode.js';
|
|
64
|
-
export { default as BufferNode } from './accessors/BufferNode.js';
|
|
65
|
-
export { default as CameraNode, CameraNodeScope } from './accessors/CameraNode.js';
|
|
66
|
-
export { default as CubeTextureNode } from './accessors/CubeTextureNode.js';
|
|
67
|
-
export { default as InstanceNode } from './accessors/InstanceNode.js';
|
|
68
|
-
export { default as MaterialNode, MaterialNodeScope } from './accessors/MaterialNode.js';
|
|
69
|
-
export { default as MaterialReferenceNode } from './accessors/MaterialReferenceNode.js';
|
|
70
|
-
export { default as ModelNode } from './accessors/ModelNode.js';
|
|
71
|
-
export { default as ModelViewProjectionNode } from './accessors/ModelViewProjectionNode.js';
|
|
72
|
-
export { default as NormalNode, NormalNodeScope } from './accessors/NormalNode.js';
|
|
73
|
-
export { default as Object3DNode, Object3DNodeScope as OObject3DNodeScope } from './accessors/Object3DNode.js';
|
|
74
|
-
export { default as PointUVNode } from './accessors/PointUVNode.js';
|
|
75
|
-
export { default as PositionNode, PositionNodeScope } from './accessors/PositionNode.js';
|
|
76
|
-
export { default as ReferenceNode } from './accessors/ReferenceNode.js';
|
|
77
|
-
export { default as ReflectVectorNode } from './accessors/ReflectVectorNode.js';
|
|
78
|
-
export { default as SkinningNode } from './accessors/SkinningNode.js';
|
|
79
|
-
export { default as TangentNode, TangentNodeScope } from './accessors/TangentNode.js';
|
|
80
|
-
export { default as TextureNode } from './accessors/TextureNode.js';
|
|
81
|
-
export { default as UVNode } from './accessors/UVNode.js';
|
|
82
|
-
export { default as UserDataNode } from './accessors/UserDataNode.js';
|
|
83
|
-
|
|
84
|
-
// display
|
|
85
|
-
export { default as BlendModeNode, BlendMode } from './display/BlendModeNode.js';
|
|
86
|
-
export { default as ColorAdjustmentNode, ColorAdjustmentMethod } from './display/ColorAdjustmentNode.js';
|
|
87
|
-
export { default as ColorSpaceNode, ColorSpaceNodeMethod } from './display/ColorSpaceNode.js';
|
|
88
|
-
export { default as FrontFacingNode } from './display/FrontFacingNode.js';
|
|
89
|
-
export { default as NormalMapNode } from './display/NormalMapNode.js';
|
|
90
|
-
export { default as PosterizeNode } from './display/PosterizeNode.js';
|
|
91
|
-
export { default as ToneMappingNode } from './display/ToneMappingNode.js';
|
|
92
|
-
export { default as ViewportNode } from './display/ViewportNode.js';
|
|
93
|
-
|
|
94
|
-
// code
|
|
95
|
-
export { default as ExpressionNode } from './code/ExpressionNode.js';
|
|
96
|
-
export { default as CodeNode, CodeNodeInclude } from './code/CodeNode.js';
|
|
97
|
-
export { default as FunctionCallNode } from './code/FunctionCallNode.js';
|
|
98
|
-
export { default as FunctionNode, FunctionNodeArguments } from './code/FunctionNode.js';
|
|
99
|
-
|
|
100
|
-
// fog
|
|
101
|
-
export { default as FogNode } from './fog/FogNode.js';
|
|
102
|
-
export { default as FogRangeNode } from './fog/FogRangeNode.js';
|
|
103
|
-
export { default as FogExp2Node } from './fog/FogExp2Node.js';
|
|
104
|
-
|
|
105
|
-
// geometry
|
|
106
|
-
export { default as RangeNode, RangeModeBound } from './geometry/RangeNode.js';
|
|
107
|
-
|
|
108
|
-
// gpgpu
|
|
109
|
-
export { default as ComputeNode } from './gpgpu/ComputeNode.js';
|
|
110
|
-
|
|
111
|
-
// lighting
|
|
112
|
-
export { default as PointLightNode } from './lighting/PointLightNode.js';
|
|
113
|
-
export { default as SpotLightNode } from './lighting/SpotLightNode.js';
|
|
114
|
-
export { default as LightsNode } from './lighting/LightsNode.js';
|
|
115
|
-
export { default as LightingNode } from './lighting/LightingNode.js';
|
|
116
|
-
export { default as LightingContextNode, LightingModelNode } from './lighting/LightingContextNode.js';
|
|
117
|
-
export { default as HemisphereLightNode } from './lighting/HemisphereLightNode.js';
|
|
118
|
-
export { default as EnvironmentNode } from './lighting/EnvironmentNode.js';
|
|
119
|
-
export { default as AONode } from './lighting/AONode.js';
|
|
120
|
-
export { default as AnalyticLightNode } from './lighting/AnalyticLightNode.js';
|
|
121
|
-
|
|
122
|
-
// procedural
|
|
123
|
-
export { default as CheckerNode } from './procedural/CheckerNode.js';
|
|
124
|
-
|
|
125
|
-
// loaders
|
|
126
|
-
export { default as NodeLoader } from './loaders/NodeLoader.js';
|
|
127
|
-
export { default as NodeObjectLoader } from './loaders/NodeObjectLoader.js';
|
|
128
|
-
export { default as NodeMaterialLoader } from './loaders/NodeMaterialLoader.js';
|
|
129
|
-
|
|
130
|
-
// materials
|
|
131
|
-
export * from './materials/Materials.js';
|
|
132
|
-
|
|
133
|
-
// materialX
|
|
134
|
-
export * from './materialx/MaterialXNodes.js';
|
|
135
|
-
|
|
136
|
-
// functions
|
|
137
|
-
export { default as BRDF_GGX } from './functions/BSDF/BRDF_GGX.js';
|
|
138
|
-
export { default as BRDF_Lambert } from './functions/BSDF/BRDF_Lambert.js';
|
|
139
|
-
export { default as D_GGX } from './functions/BSDF/D_GGX.js';
|
|
140
|
-
export { default as DFGApprox } from './functions/BSDF/DFGApprox.js';
|
|
141
|
-
export { default as F_Schlick } from './functions/BSDF/F_Schlick.js';
|
|
142
|
-
export { default as V_GGX_SmithCorrelated } from './functions/BSDF/V_GGX_SmithCorrelated.js';
|
|
143
|
-
|
|
144
|
-
export { getDistanceAttenuation } from './lighting/LightUtils.js';
|
|
145
|
-
|
|
146
|
-
export { default as getGeometryRoughness } from './functions/material/getGeometryRoughness.js';
|
|
147
|
-
export { default as getRoughness } from './functions/material/getRoughness.js';
|
|
148
|
-
|
|
149
|
-
export { default as physicalLightingModel } from './functions/PhysicalLightingModel.js';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import Node from '../core/Node.js';
|
|
2
|
-
|
|
3
|
-
export type BitangentNodeScope =
|
|
4
|
-
| typeof BitangentNode.LOCAL
|
|
5
|
-
| typeof BitangentNode.VIEW
|
|
6
|
-
| typeof BitangentNode.WORLD
|
|
7
|
-
| typeof BitangentNode.GEOMETRY;
|
|
8
|
-
|
|
9
|
-
export default class BitangentNode extends Node {
|
|
10
|
-
static GEOMETRY: 'geometry';
|
|
11
|
-
static LOCAL: 'local';
|
|
12
|
-
static VIEW: 'view';
|
|
13
|
-
static WORLD: 'world';
|
|
14
|
-
|
|
15
|
-
scope: BitangentNodeScope;
|
|
16
|
-
|
|
17
|
-
constructor(scope?: BitangentNodeScope);
|
|
18
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NodeTypeOption } from '../core/constants.js';
|
|
2
|
-
import UniformNode from '../core/UniformNode.js';
|
|
3
|
-
|
|
4
|
-
export default class BufferNode extends UniformNode {
|
|
5
|
-
isBufferNode: true;
|
|
6
|
-
|
|
7
|
-
bufferType: string;
|
|
8
|
-
bufferCount: number;
|
|
9
|
-
|
|
10
|
-
constructor(value: ArrayLike<number>, bufferType: NodeTypeOption, bufferCount?: number);
|
|
11
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Object3DNode, { Object3DNodeScope } from './Object3DNode.js';
|
|
2
|
-
|
|
3
|
-
export type CameraNodeScope = Object3DNodeScope | typeof CameraNode.PROJECTION_MATRIX;
|
|
4
|
-
|
|
5
|
-
export default class CameraNode extends Object3DNode {
|
|
6
|
-
static PROJECTION_MATRIX: 'projectionMatrix';
|
|
7
|
-
|
|
8
|
-
// @ts-expect-error
|
|
9
|
-
scope: CameraNodeScope;
|
|
10
|
-
|
|
11
|
-
constructor(scope?: CameraNodeScope);
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import TextureNode from './TextureNode.js';
|
|
2
|
-
import { Node } from '../Nodes.js';
|
|
3
|
-
import { CubeTexture } from '../../../../src/Three.js';
|
|
4
|
-
|
|
5
|
-
export default class CubeTextureNode extends TextureNode {
|
|
6
|
-
isCubeTextureNode: boolean;
|
|
7
|
-
uvNode: Node | null;
|
|
8
|
-
levelNode: Node | null;
|
|
9
|
-
|
|
10
|
-
constructor(value: CubeTexture, uvNode?: Node | null, levelNode?: Node | null);
|
|
11
|
-
|
|
12
|
-
getDefaultUV(): Node;
|
|
13
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import Node from '../core/Node.js';
|
|
2
|
-
|
|
3
|
-
export type MaterialNodeScope =
|
|
4
|
-
| typeof MaterialNode.ALPHA_TEST
|
|
5
|
-
| typeof MaterialNode.COLOR
|
|
6
|
-
| typeof MaterialNode.OPACITY
|
|
7
|
-
| typeof MaterialNode.ROUGHNESS
|
|
8
|
-
| typeof MaterialNode.METALNESS
|
|
9
|
-
| typeof MaterialNode.EMISSIVE
|
|
10
|
-
| typeof MaterialNode.ROTATION;
|
|
11
|
-
|
|
12
|
-
export default class MaterialNode extends Node {
|
|
13
|
-
static ALPHA_TEST: 'alphaTest';
|
|
14
|
-
static COLOR: 'color';
|
|
15
|
-
static OPACITY: 'opacity';
|
|
16
|
-
static ROUGHNESS: 'roughness';
|
|
17
|
-
static METALNESS: 'metalness';
|
|
18
|
-
static EMISSIVE: 'emissive';
|
|
19
|
-
static ROTATION: 'rotation';
|
|
20
|
-
|
|
21
|
-
scope: MaterialNodeScope;
|
|
22
|
-
constructor(scope?: MaterialNodeScope);
|
|
23
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Material } from '../../../../src/Three.js';
|
|
2
|
-
import ReferenceNode from './ReferenceNode.js';
|
|
3
|
-
|
|
4
|
-
export default class MaterialReferenceNode extends ReferenceNode<Material | null> {
|
|
5
|
-
constructor(property: string, inputType: string, material?: Material | null);
|
|
6
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NodeFrame } from '../Nodes.js';
|
|
2
|
-
import Object3DNode, { Object3DNodeScope } from './Object3DNode.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Similar to {@link Object3DNode} but the object comes from {@link NodeFrame}
|
|
6
|
-
*/
|
|
7
|
-
export default class ModelNode extends Object3DNode {
|
|
8
|
-
constructor(scope?: Object3DNodeScope);
|
|
9
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Node from '../core/Node.js';
|
|
2
|
-
|
|
3
|
-
export type NormalNodeScope = typeof NormalNode.GEOMETRY | typeof NormalNode.LOCAL | typeof NormalNode.VIEW;
|
|
4
|
-
|
|
5
|
-
export default class NormalNode extends Node {
|
|
6
|
-
static GEOMETRY: 'geometry';
|
|
7
|
-
static LOCAL: 'local';
|
|
8
|
-
static VIEW: 'view';
|
|
9
|
-
scope: NormalNodeScope;
|
|
10
|
-
|
|
11
|
-
constructor(scope?: NormalNodeScope);
|
|
12
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Object3D } from '../../../../src/Three.js';
|
|
2
|
-
import Node from '../core/Node.js';
|
|
3
|
-
|
|
4
|
-
export type Object3DNodeScope =
|
|
5
|
-
| typeof Object3DNode.VIEW_MATRIX
|
|
6
|
-
| typeof Object3DNode.NORMAL_MATRIX
|
|
7
|
-
| typeof Object3DNode.WORLD_MATRIX
|
|
8
|
-
| typeof Object3DNode.POSITION
|
|
9
|
-
| typeof Object3DNode.VIEW_POSITION;
|
|
10
|
-
|
|
11
|
-
export default class Object3DNode extends Node {
|
|
12
|
-
static VIEW_MATRIX: 'viewMatrix';
|
|
13
|
-
static NORMAL_MATRIX: 'normalMatrix';
|
|
14
|
-
static WORLD_MATRIX: 'worldMatrix';
|
|
15
|
-
static POSITION: 'position';
|
|
16
|
-
static VIEW_POSITION: 'viewPosition';
|
|
17
|
-
|
|
18
|
-
scope: Object3DNodeScope;
|
|
19
|
-
object3d: Object3D | null;
|
|
20
|
-
|
|
21
|
-
constructor(scope?: Object3DNodeScope, object3d?: Object3D | null);
|
|
22
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import Node from '../core/Node.js';
|
|
2
|
-
|
|
3
|
-
export type PositionNodeScope =
|
|
4
|
-
| typeof PositionNode.GEOMETRY
|
|
5
|
-
| typeof PositionNode.LOCAL
|
|
6
|
-
| typeof PositionNode.WORLD
|
|
7
|
-
| typeof PositionNode.WORLD_DIRECTION
|
|
8
|
-
| typeof PositionNode.VIEW
|
|
9
|
-
| typeof PositionNode.VIEW_DIRECTION;
|
|
10
|
-
|
|
11
|
-
export default class PositionNode extends Node {
|
|
12
|
-
static GEOMETRY: 'geometry';
|
|
13
|
-
static LOCAL: 'local';
|
|
14
|
-
static WORLD: 'world';
|
|
15
|
-
static WORLD_DIRECTION: 'worldDirection';
|
|
16
|
-
static VIEW: 'view';
|
|
17
|
-
static VIEW_DIRECTION: 'viewDirection';
|
|
18
|
-
scope: PositionNodeScope;
|
|
19
|
-
|
|
20
|
-
constructor(scope?: PositionNodeScope);
|
|
21
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Node from '../core/Node.js';
|
|
2
|
-
import { NodeTypeOption } from '../Nodes.js';
|
|
3
|
-
|
|
4
|
-
export default class ReferenceNode<T> extends Node {
|
|
5
|
-
object: T;
|
|
6
|
-
property: string;
|
|
7
|
-
uniformType: string;
|
|
8
|
-
node: Node | null;
|
|
9
|
-
|
|
10
|
-
constructor(property: string, uniformType: NodeTypeOption, object?: T | null);
|
|
11
|
-
|
|
12
|
-
setNodeType(uniformType: NodeTypeOption): void;
|
|
13
|
-
}
|