@types/three 0.157.1 → 0.158.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 +290 -0
- three/examples/jsm/animation/CCDIKSolver.d.ts +30 -0
- three/examples/jsm/animation/MMDAnimationHelper.d.ts +105 -0
- three/examples/jsm/animation/MMDPhysics.d.ts +124 -0
- three/examples/jsm/cameras/CinematicCamera.d.ts +41 -0
- three/examples/jsm/capabilities/WebGL.d.ts +9 -0
- three/examples/jsm/controls/OrbitControls.d.ts +304 -0
- three/examples/jsm/controls/TrackballControls.d.ts +58 -0
- three/examples/jsm/effects/OutlineEffect.d.ts +36 -0
- three/examples/jsm/environments/RoomEnvironment.d.ts +6 -0
- three/examples/jsm/exporters/PLYExporter.d.ts +30 -0
- three/examples/jsm/exporters/STLExporter.d.ts +21 -0
- three/examples/jsm/helpers/RectAreaLightHelper.d.ts +10 -0
- three/examples/jsm/helpers/ViewHelper.d.ts +15 -0
- three/examples/jsm/libs/fflate.module.d.ts +1 -0
- three/examples/jsm/libs/lil-gui.module.min.d.ts +609 -0
- three/examples/jsm/libs/tween.module.d.ts +219 -0
- three/examples/jsm/lights/RectAreaLightUniformsLib.d.ts +3 -0
- three/examples/jsm/lines/Line2.d.ts +11 -0
- three/examples/jsm/lines/LineGeometry.d.ts +10 -0
- three/examples/jsm/lines/LineMaterial.d.ts +31 -0
- three/examples/jsm/lines/LineSegments2.d.ts +14 -0
- three/examples/jsm/lines/LineSegmentsGeometry.d.ts +23 -0
- three/examples/jsm/loaders/DDSLoader.d.ts +16 -0
- three/examples/jsm/loaders/DRACOLoader.d.ts +19 -0
- three/examples/jsm/loaders/GLTFLoader.d.ts +147 -0
- three/examples/jsm/loaders/KTX2Loader.d.ts +17 -0
- three/examples/jsm/loaders/LDrawLoader.d.ts +19 -0
- three/examples/jsm/loaders/LogLuvLoader.d.ts +1 -1
- three/examples/jsm/loaders/MMDLoader.d.ts +56 -0
- three/examples/jsm/loaders/MTLLoader.d.ts +104 -0
- three/examples/jsm/loaders/OBJLoader.d.ts +10 -0
- three/examples/jsm/loaders/PCDLoader.d.ts +8 -0
- three/examples/jsm/loaders/RGBELoader.d.ts +19 -0
- three/examples/jsm/loaders/SVGLoader.d.ts +68 -0
- three/examples/jsm/loaders/TGALoader.d.ts +7 -0
- three/examples/jsm/loaders/TTFLoader.d.ts +8 -0
- three/examples/jsm/loaders/USDZLoader.d.ts +11 -0
- three/examples/jsm/materials/MeshGouraudMaterial.d.ts +17 -0
- three/examples/jsm/math/Capsule.d.ts +0 -1
- three/examples/jsm/misc/MD2CharacterComplex.d.ts +9 -1
- three/examples/jsm/nodes/Nodes.d.ts +149 -0
- three/examples/jsm/nodes/accessors/BitangentNode.d.ts +18 -0
- three/examples/jsm/nodes/accessors/BufferNode.d.ts +11 -0
- three/examples/jsm/nodes/accessors/CameraNode.d.ts +12 -0
- three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +13 -0
- three/examples/jsm/nodes/accessors/InstanceNode.d.ts +9 -0
- three/examples/jsm/nodes/accessors/MaterialNode.d.ts +23 -0
- three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +6 -0
- three/examples/jsm/nodes/accessors/ModelNode.d.ts +9 -0
- three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +6 -0
- three/examples/jsm/nodes/accessors/NormalNode.d.ts +12 -0
- three/examples/jsm/nodes/accessors/Object3DNode.d.ts +22 -0
- three/examples/jsm/nodes/accessors/PointUVNode.d.ts +7 -0
- three/examples/jsm/nodes/accessors/PositionNode.d.ts +21 -0
- three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +13 -0
- three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +8 -0
- three/examples/jsm/nodes/accessors/SkinningNode.d.ts +13 -0
- three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +6 -0
- three/examples/jsm/nodes/accessors/TangentNode.d.ts +18 -0
- three/examples/jsm/nodes/accessors/TextureNode.d.ts +14 -0
- three/examples/jsm/nodes/accessors/UVNode.d.ts +8 -0
- three/examples/jsm/nodes/accessors/UserDataNode.d.ts +7 -0
- three/examples/jsm/nodes/code/CodeNode.d.ts +15 -0
- three/examples/jsm/nodes/code/ExpressionNode.d.ts +7 -0
- three/examples/jsm/nodes/code/FunctionCallNode.d.ts +13 -0
- three/examples/jsm/nodes/code/FunctionNode.d.ts +17 -0
- three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +8 -0
- three/examples/jsm/nodes/core/AttributeNode.d.ts +9 -0
- three/examples/jsm/nodes/core/BypassNode.d.ts +9 -0
- three/examples/jsm/nodes/core/CacheNode.d.ts +10 -0
- three/examples/jsm/nodes/core/ConstNode.d.ts +10 -0
- three/examples/jsm/nodes/core/ContextNode.d.ts +10 -0
- three/examples/jsm/nodes/core/InputNode.d.ts +16 -0
- three/examples/jsm/nodes/core/Node.d.ts +31 -0
- three/examples/jsm/nodes/core/NodeAttribute.d.ts +6 -0
- three/examples/jsm/nodes/core/NodeBuilder.d.ts +138 -0
- three/examples/jsm/nodes/core/NodeCache.d.ts +9 -0
- three/examples/jsm/nodes/core/NodeCode.d.ts +4 -0
- three/examples/jsm/nodes/core/NodeFrame.d.ts +19 -0
- three/examples/jsm/nodes/core/NodeFunction.d.ts +13 -0
- three/examples/jsm/nodes/core/NodeFunctionInput.d.ts +7 -0
- three/examples/jsm/nodes/core/NodeKeywords.d.ts +14 -0
- three/examples/jsm/nodes/core/NodeParser.d.ts +5 -0
- three/examples/jsm/nodes/core/NodeUniform.d.ts +13 -0
- three/examples/jsm/nodes/core/NodeUtils.d.ts +13 -0
- three/examples/jsm/nodes/core/NodeVar.d.ts +6 -0
- three/examples/jsm/nodes/core/NodeVarying.d.ts +8 -0
- three/examples/jsm/nodes/core/PropertyNode.d.ts +6 -0
- three/examples/jsm/nodes/core/StackNode.d.ts +11 -0
- three/examples/jsm/nodes/core/TempNode.d.ts +11 -0
- three/examples/jsm/nodes/core/UniformNode.d.ts +10 -0
- three/examples/jsm/nodes/core/VarNode.d.ts +16 -0
- three/examples/jsm/nodes/core/VaryingNode.d.ts +8 -0
- three/examples/jsm/nodes/core/constants.d.ts +78 -0
- three/examples/jsm/nodes/display/BlendModeNode.d.ts +32 -0
- three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +20 -0
- three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +18 -0
- three/examples/jsm/nodes/display/FrontFacingNode.d.ts +6 -0
- three/examples/jsm/nodes/display/NormalMapNode.d.ts +12 -0
- three/examples/jsm/nodes/display/PosterizeNode.d.ts +8 -0
- three/examples/jsm/nodes/display/ToneMappingNode.d.ts +14 -0
- three/examples/jsm/nodes/display/ViewportNode.d.ts +23 -0
- three/examples/jsm/nodes/fog/FogExp2Node.d.ts +9 -0
- three/examples/jsm/nodes/fog/FogNode.d.ts +10 -0
- three/examples/jsm/nodes/fog/FogRangeNode.d.ts +10 -0
- three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +6 -0
- three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +6 -0
- three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +10 -0
- three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +9 -0
- three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +6 -0
- three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +6 -0
- three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +11 -0
- three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +5 -0
- three/examples/jsm/nodes/functions/material/getRoughness.d.ts +6 -0
- three/examples/jsm/nodes/geometry/RangeNode.d.ts +13 -0
- three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +11 -0
- three/examples/jsm/nodes/lighting/AONode.d.ts +8 -0
- three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +10 -0
- three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts +8 -0
- three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +13 -0
- three/examples/jsm/nodes/lighting/LightUtils.d.ts +4 -0
- three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +15 -0
- three/examples/jsm/nodes/lighting/LightingNode.d.ts +5 -0
- three/examples/jsm/nodes/lighting/LightsNode.d.ts +19 -0
- three/examples/jsm/nodes/lighting/PointLightNode.d.ts +10 -0
- three/examples/jsm/nodes/lighting/SpotLightNode.d.ts +15 -0
- three/examples/jsm/nodes/loaders/NodeLoader.d.ts +14 -0
- three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +8 -0
- three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +9 -0
- three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +9 -0
- three/examples/jsm/nodes/materials/Materials.d.ts +17 -0
- three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +10 -0
- three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +22 -0
- three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +18 -0
- three/examples/jsm/nodes/materials/NodeMaterial.d.ts +38 -0
- three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +15 -0
- three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +23 -0
- three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts +94 -0
- three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts +4 -0
- three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +6 -0
- three/examples/jsm/nodes/math/CondNode.d.ts +9 -0
- three/examples/jsm/nodes/math/MathNode.d.ts +115 -0
- three/examples/jsm/nodes/math/OperatorNode.d.ts +31 -0
- three/examples/jsm/nodes/procedural/CheckerNode.d.ts +6 -0
- three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +156 -0
- three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +310 -0
- three/examples/jsm/nodes/shadernode/ShaderNodeElements.d.ts +166 -0
- three/examples/jsm/nodes/utils/ArrayElementNode.d.ts +9 -0
- three/examples/jsm/nodes/utils/ConvertNode.d.ts +8 -0
- three/examples/jsm/nodes/utils/EquirectUVNode.d.ts +6 -0
- three/examples/jsm/nodes/utils/JoinNode.d.ts +10 -0
- three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +5 -0
- three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +11 -0
- three/examples/jsm/nodes/utils/OscNode.d.ts +19 -0
- three/examples/jsm/nodes/utils/RemapNode.d.ts +13 -0
- three/examples/jsm/nodes/utils/RotateUVNode.d.ts +10 -0
- three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +8 -0
- three/examples/jsm/nodes/utils/SplitNode.d.ts +16 -0
- three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +9 -0
- three/examples/jsm/nodes/utils/TimerNode.d.ts +19 -0
- three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts +22 -0
- three/examples/jsm/objects/Reflector.d.ts +29 -0
- three/examples/jsm/objects/ReflectorForSSRPass.d.ts +1 -0
- three/examples/jsm/objects/Refractor.d.ts +2 -1
- three/examples/jsm/physics/AmmoPhysics.d.ts +2 -1
- three/examples/jsm/physics/RapierPhysics.d.ts +2 -1
- three/examples/jsm/postprocessing/EffectComposer.d.ts +31 -0
- three/examples/jsm/postprocessing/Pass.d.ts +31 -0
- three/examples/jsm/postprocessing/SavePass.d.ts +12 -0
- three/examples/jsm/postprocessing/ShaderPass.d.ts +11 -0
- three/examples/jsm/renderers/CSS3DRenderer.d.ts +26 -0
- three/examples/jsm/renderers/SVGRenderer.d.ts +2 -1
- three/examples/jsm/renderers/common/Backend.d.ts +15 -0
- three/examples/jsm/renderers/common/Info.d.ts +15 -0
- three/examples/jsm/renderers/common/Renderer.d.ts +42 -0
- three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +17 -0
- three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +37 -0
- three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +3 -0
- three/examples/jsm/renderers/webgpu/WebGPURenderer.d.ts +9 -0
- three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts +11 -0
- three/examples/jsm/shaders/AfterimageShader.d.ts +1 -0
- three/examples/jsm/shaders/BasicShader.d.ts +1 -0
- three/examples/jsm/shaders/BlendShader.d.ts +1 -0
- three/examples/jsm/shaders/BokehShader.d.ts +1 -0
- three/examples/jsm/shaders/BokehShader2.d.ts +44 -0
- three/examples/jsm/shaders/BrightnessContrastShader.d.ts +1 -0
- three/examples/jsm/shaders/ColorCorrectionShader.d.ts +1 -0
- three/examples/jsm/shaders/DOFMipMapShader.d.ts +1 -0
- three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts +1 -0
- three/examples/jsm/shaders/FXAAShader.d.ts +1 -0
- three/examples/jsm/shaders/FocusShader.d.ts +1 -0
- three/examples/jsm/shaders/FreiChenShader.d.ts +1 -0
- three/examples/jsm/shaders/GodRaysShader.d.ts +4 -0
- three/examples/jsm/shaders/HalftoneShader.d.ts +1 -0
- three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts +1 -0
- three/examples/jsm/shaders/HueSaturationShader.d.ts +1 -0
- three/examples/jsm/shaders/KaleidoShader.d.ts +1 -0
- three/examples/jsm/shaders/LuminosityHighPassShader.d.ts +1 -0
- three/examples/jsm/shaders/LuminosityShader.d.ts +1 -0
- three/examples/jsm/shaders/MirrorShader.d.ts +1 -0
- three/examples/jsm/shaders/NormalMapShader.d.ts +1 -0
- three/examples/jsm/shaders/OutputShader.d.ts +1 -0
- three/examples/jsm/shaders/SAOShader.d.ts +1 -0
- three/examples/jsm/shaders/SMAAShader.d.ts +3 -0
- three/examples/jsm/shaders/SSAOShader.d.ts +3 -0
- three/examples/jsm/shaders/SSRShader.d.ts +3 -0
- three/examples/jsm/shaders/SobelOperatorShader.d.ts +1 -0
- three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts +1 -0
- three/examples/jsm/shaders/TechnicolorShader.d.ts +1 -0
- three/examples/jsm/shaders/TriangleBlurShader.d.ts +1 -0
- three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts +1 -0
- three/examples/jsm/shaders/VelocityShader.d.ts +14 -0
- three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts +1 -0
- three/examples/jsm/shaders/WaterRefractionShader.d.ts +1 -0
- three/examples/jsm/utils/GPUStatsPanel.d.ts +12 -0
- three/examples/jsm/utils/GeometryUtils.d.ts +25 -0
- three/examples/jsm/utils/LDrawUtils.d.ts +5 -0
- three/examples/jsm/webxr/VRButton.d.ts +5 -0
- three/examples/jsm/webxr/XRButton.d.ts +6 -0
- three/examples/jsm/webxr/XRControllerModelFactory.d.ts +21 -0
- three/examples/jsm/webxr/XREstimatedLight.d.ts +32 -0
- three/examples/jsm/webxr/XRHandMeshModel.d.ts +11 -0
- three/examples/jsm/webxr/XRHandModelFactory.d.ts +25 -0
- three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts +24 -0
- three/package.json +3 -2
- three/src/cameras/CubeCamera.d.ts +1 -2
- three/src/constants.d.ts +21 -10
- three/src/core/Object3D.d.ts +4 -4
- three/src/core/Raycaster.d.ts +1 -0
- three/src/extras/Earcut.d.ts +15 -0
- three/src/extras/core/Curve.d.ts +1 -1
- three/src/geometries/CapsuleGeometry.d.ts +1 -1
- three/src/helpers/AxesHelper.d.ts +2 -2
- three/src/helpers/Box3Helper.d.ts +2 -2
- three/src/lights/Light.d.ts +1 -2
- three/src/materials/Material.d.ts +20 -2
- three/src/materials/MeshPhysicalMaterial.d.ts +8 -6
- three/src/math/ColorManagement.d.ts +1 -1
- three/src/math/Matrix4.d.ts +2 -1
- three/src/objects/SkinnedMesh.d.ts +9 -8
- three/src/renderers/WebGLRenderer.d.ts +12 -2
- three/src/scenes/Scene.d.ts +2 -2
- three/src/textures/DepthTexture.d.ts +3 -3
- three/src/textures/Texture.d.ts +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Texture } from '
|
|
2
|
-
import { Vector2 } from '
|
|
1
|
+
import { Texture } from '../textures/Texture.js';
|
|
2
|
+
import { Vector2 } from '../math/Vector2.js';
|
|
3
3
|
import { MeshStandardMaterialParameters, MeshStandardMaterial } from './MeshStandardMaterial.js';
|
|
4
|
-
import { Color } from '
|
|
4
|
+
import { Color, ColorRepresentation } from '../math/Color.js';
|
|
5
5
|
|
|
6
6
|
export interface MeshPhysicalMaterialParameters extends MeshStandardMaterialParameters {
|
|
7
7
|
clearcoat?: number | undefined;
|
|
@@ -15,7 +15,7 @@ export interface MeshPhysicalMaterialParameters extends MeshStandardMaterialPara
|
|
|
15
15
|
ior?: number | undefined;
|
|
16
16
|
|
|
17
17
|
sheen?: number | undefined;
|
|
18
|
-
sheenColor?:
|
|
18
|
+
sheenColor?: ColorRepresentation | undefined;
|
|
19
19
|
sheenColorMap?: Texture | null | undefined;
|
|
20
20
|
sheenRoughness?: number | undefined;
|
|
21
21
|
sheenRoughnessMap?: Texture | null | undefined;
|
|
@@ -27,10 +27,10 @@ export interface MeshPhysicalMaterialParameters extends MeshStandardMaterialPara
|
|
|
27
27
|
thicknessMap?: Texture | null | undefined;
|
|
28
28
|
|
|
29
29
|
attenuationDistance?: number | undefined;
|
|
30
|
-
attenuationColor?:
|
|
30
|
+
attenuationColor?: ColorRepresentation | undefined;
|
|
31
31
|
|
|
32
32
|
specularIntensity?: number | undefined;
|
|
33
|
-
specularColor?:
|
|
33
|
+
specularColor?: ColorRepresentation | undefined;
|
|
34
34
|
specularIntensityMap?: Texture | null | undefined;
|
|
35
35
|
specularColorMap?: Texture | null | undefined;
|
|
36
36
|
|
|
@@ -48,6 +48,8 @@ export interface MeshPhysicalMaterialParameters extends MeshStandardMaterialPara
|
|
|
48
48
|
export class MeshPhysicalMaterial extends MeshStandardMaterial {
|
|
49
49
|
constructor(parameters?: MeshPhysicalMaterialParameters);
|
|
50
50
|
|
|
51
|
+
isMeshPhysicalMaterial: boolean;
|
|
52
|
+
|
|
51
53
|
/**
|
|
52
54
|
* @default 'MeshPhysicalMaterial'
|
|
53
55
|
*/
|
|
@@ -26,7 +26,7 @@ export interface ColorManagement {
|
|
|
26
26
|
* @default LinearSRGBColorSpace
|
|
27
27
|
*/
|
|
28
28
|
get workingColorSpace(): WorkingColorSpace;
|
|
29
|
-
set
|
|
29
|
+
set workingColorSpace(colorSpace: WorkingColorSpace);
|
|
30
30
|
|
|
31
31
|
convert: (color: Color, sourceColorSpace: DefinedColorSpace, targetColorSpace: DefinedColorSpace) => Color;
|
|
32
32
|
|
three/src/math/Matrix4.d.ts
CHANGED
|
@@ -156,7 +156,8 @@ export class Matrix4 implements Matrix {
|
|
|
156
156
|
/**
|
|
157
157
|
* Sets the position component for this matrix from vector v.
|
|
158
158
|
*/
|
|
159
|
-
setPosition(v: Vector3
|
|
159
|
+
setPosition(v: Vector3): Matrix4;
|
|
160
|
+
setPosition(x: number, y: number, z: number): Matrix4;
|
|
160
161
|
|
|
161
162
|
/**
|
|
162
163
|
* Inverts this matrix.
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Material } from '
|
|
1
|
+
import { Material } from '../materials/Material.js';
|
|
2
2
|
import { Box3 } from '../math/Box3.js';
|
|
3
|
-
import { Matrix4 } from '
|
|
4
|
-
import { Vector3 } from '
|
|
3
|
+
import { Matrix4 } from '../math/Matrix4.js';
|
|
4
|
+
import { Vector3 } from '../math/Vector3.js';
|
|
5
5
|
import { Skeleton } from './Skeleton.js';
|
|
6
6
|
import { Mesh } from './Mesh.js';
|
|
7
7
|
import { BufferGeometry } from '../core/BufferGeometry.js';
|
|
8
8
|
import { Sphere } from '../math/Sphere.js';
|
|
9
|
+
import { BindMode } from '../constants.js';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* A mesh that has a {@link THREE.Skeleton | Skeleton} with {@link Bone | bones} that can then be used to animate the vertices of the geometry.
|
|
@@ -72,12 +73,12 @@ export class SkinnedMesh<
|
|
|
72
73
|
override readonly type: string | 'SkinnedMesh';
|
|
73
74
|
|
|
74
75
|
/**
|
|
75
|
-
* Either
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* @defaultValue `
|
|
76
|
+
* Either {@link AttachedBindMode} or {@link DetachedBindMode}. {@link AttachedBindMode} means the skinned mesh
|
|
77
|
+
* shares the same world space as the skeleton. This is not true when using {@link DetachedBindMode} which is useful
|
|
78
|
+
* when sharing a skeleton across multiple skinned meshes.
|
|
79
|
+
* @defaultValue `AttachedBindMode`
|
|
79
80
|
*/
|
|
80
|
-
bindMode:
|
|
81
|
+
bindMode: BindMode;
|
|
81
82
|
|
|
82
83
|
/**
|
|
83
84
|
* The base matrix that is used for the bound bone transforms.
|
|
@@ -370,9 +370,19 @@ export class WebGLRenderer implements Renderer {
|
|
|
370
370
|
animate(callback: () => void): void;
|
|
371
371
|
|
|
372
372
|
/**
|
|
373
|
-
* Compiles all materials in the scene with the camera. This is useful to precompile shaders before the first
|
|
373
|
+
* Compiles all materials in the scene with the camera. This is useful to precompile shaders before the first
|
|
374
|
+
* rendering. If you want to add a 3D object to an existing scene, use the third optional parameter for applying the
|
|
375
|
+
* target scene.
|
|
376
|
+
* Note that the (target) scene's lighting should be configured before calling this method.
|
|
374
377
|
*/
|
|
375
|
-
compile(scene: Object3D, camera: Camera)
|
|
378
|
+
compile: (scene: Object3D, camera: Camera, targetScene?: Scene | null) => Set<Material>;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Asynchronous version of {@link compile}(). The method returns a Promise that resolves when the given scene can be
|
|
382
|
+
* rendered without unnecessary stalling due to shader compilation.
|
|
383
|
+
* This method makes use of the KHR_parallel_shader_compile WebGL extension.
|
|
384
|
+
*/
|
|
385
|
+
compileAsync: (scene: Object3D, camera: Camera, targetScene?: Scene | null) => Promise<Object3D>;
|
|
376
386
|
|
|
377
387
|
/**
|
|
378
388
|
* Render a scene or an object using a camera.
|
three/src/scenes/Scene.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FogBase } from './Fog.js';
|
|
2
|
-
import { Material } from '
|
|
3
|
-
import { Object3D } from '
|
|
2
|
+
import { Material } from '../materials/Material.js';
|
|
3
|
+
import { Object3D } from '../core/Object3D.js';
|
|
4
4
|
import { Color } from '../math/Color.js';
|
|
5
5
|
import { Texture } from '../textures/Texture.js';
|
|
6
6
|
import { CubeTexture } from '../Three.js';
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
Mapping,
|
|
4
4
|
Wrapping,
|
|
5
5
|
TextureDataType,
|
|
6
|
-
|
|
6
|
+
DepthTexturePixelFormat,
|
|
7
7
|
MagnificationTextureFilter,
|
|
8
8
|
MinificationTextureFilter,
|
|
9
9
|
TextureComparisonFunction,
|
|
@@ -42,7 +42,7 @@ export class DepthTexture extends Texture {
|
|
|
42
42
|
magFilter?: MagnificationTextureFilter,
|
|
43
43
|
minFilter?: MinificationTextureFilter,
|
|
44
44
|
anisotropy?: number,
|
|
45
|
-
format?:
|
|
45
|
+
format?: DepthTexturePixelFormat,
|
|
46
46
|
);
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -88,7 +88,7 @@ export class DepthTexture extends Texture {
|
|
|
88
88
|
* @see {@link Texture.format | Texture.format}
|
|
89
89
|
* @defaultValue {@link THREE.DepthFormat}.
|
|
90
90
|
*/
|
|
91
|
-
format:
|
|
91
|
+
format: DepthTexturePixelFormat;
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* @override
|
three/src/textures/Texture.d.ts
CHANGED
|
@@ -201,8 +201,8 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
|
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
203
|
* These define how elements of a 2D texture, or texels, are read by shaders.
|
|
204
|
-
* @remarks All {@link Texture} types except {@link THREE.
|
|
205
|
-
* @remarks {@link
|
|
204
|
+
* @remarks All {@link Texture} types except {@link THREE.DepthTexture} and {@link THREE.CompressedPixelFormat} expect the _values_ be {@link THREE.PixelFormat}
|
|
205
|
+
* @remarks {@link DepthTexture} expect the _values_ be {@link THREE.CubeTextureMapping}
|
|
206
206
|
* @remarks {@link CompressedPixelFormat} expect the _values_ be {@link THREE.CubeTextureMapping}
|
|
207
207
|
* @see {@link https://threejs.org/docs/index.html#api/en/constants/Textures | Texture Constants}
|
|
208
208
|
* @see {@link THREE.PixelFormat}
|