@types/three 0.158.3 → 0.160.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 +2 -1
- three/examples/jsm/cameras/CinematicCamera.d.ts +1 -1
- three/examples/jsm/helpers/TextureHelper.d.ts +10 -0
- three/examples/jsm/lines/LineMaterial.d.ts +2 -2
- three/examples/jsm/loaders/ColladaLoader.d.ts +1 -3
- three/examples/jsm/loaders/GLTFLoader.d.ts +1 -1
- three/examples/jsm/loaders/KTX2Loader.d.ts +2 -8
- three/examples/jsm/loaders/MaterialXLoader.d.ts +6 -0
- three/examples/jsm/loaders/SVGLoader.d.ts +1 -5
- three/examples/jsm/math/Octree.d.ts +7 -3
- three/examples/jsm/misc/ProgressiveLightMap.d.ts +1 -1
- three/examples/jsm/misc/Timer.d.ts +80 -0
- three/examples/jsm/nodes/Nodes.d.ts +238 -60
- three/examples/jsm/nodes/accessors/BitangentNode.d.ts +9 -0
- three/examples/jsm/nodes/accessors/BufferNode.d.ts +4 -1
- three/examples/jsm/nodes/accessors/CameraNode.d.ts +7 -0
- three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +9 -2
- three/examples/jsm/nodes/accessors/InstanceNode.d.ts +3 -0
- three/examples/jsm/nodes/accessors/MaterialNode.d.ts +12 -0
- three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +7 -0
- three/examples/jsm/nodes/accessors/ModelNode.d.ts +7 -1
- three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +3 -0
- three/examples/jsm/nodes/accessors/NormalNode.d.ts +8 -0
- three/examples/jsm/nodes/accessors/PointUVNode.d.ts +3 -0
- three/examples/jsm/nodes/accessors/PositionNode.d.ts +8 -0
- three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +4 -1
- three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +3 -0
- three/examples/jsm/nodes/accessors/SkinningNode.d.ts +3 -0
- three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +8 -1
- three/examples/jsm/nodes/accessors/TangentNode.d.ts +9 -0
- three/examples/jsm/nodes/accessors/TextureNode.d.ts +10 -2
- three/examples/jsm/nodes/accessors/UVNode.d.ts +3 -0
- three/examples/jsm/nodes/accessors/UserDataNode.d.ts +7 -0
- three/examples/jsm/nodes/code/CodeNode.d.ts +4 -0
- three/examples/jsm/nodes/code/ExpressionNode.d.ts +3 -0
- three/examples/jsm/nodes/code/FunctionCallNode.d.ts +7 -1
- three/examples/jsm/nodes/code/FunctionNode.d.ts +17 -0
- three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +1 -1
- three/examples/jsm/nodes/core/AttributeNode.d.ts +3 -0
- three/examples/jsm/nodes/core/BypassNode.d.ts +3 -0
- three/examples/jsm/nodes/core/CacheNode.d.ts +3 -0
- three/examples/jsm/nodes/core/ConstNode.d.ts +3 -3
- three/examples/jsm/nodes/core/ContextNode.d.ts +3 -0
- three/examples/jsm/nodes/core/InputNode.d.ts +4 -4
- three/examples/jsm/nodes/core/NodeBuilder.d.ts +6 -3
- three/examples/jsm/nodes/core/NodeUniform.d.ts +12 -8
- three/examples/jsm/nodes/core/NodeUtils.d.ts +6 -3
- three/examples/jsm/nodes/core/PropertyNode.d.ts +9 -0
- three/examples/jsm/nodes/core/UniformNode.d.ts +12 -4
- three/examples/jsm/nodes/core/VarNode.d.ts +4 -0
- three/examples/jsm/nodes/core/VaryingNode.d.ts +3 -0
- three/examples/jsm/nodes/core/constants.d.ts +10 -8
- three/examples/jsm/nodes/display/BlendModeNode.d.ts +7 -2
- three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +18 -1
- three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +4 -0
- three/examples/jsm/nodes/display/FrontFacingNode.d.ts +4 -0
- three/examples/jsm/nodes/display/NormalMapNode.d.ts +7 -1
- three/examples/jsm/nodes/display/PosterizeNode.d.ts +6 -0
- three/examples/jsm/nodes/display/ToneMappingNode.d.ts +8 -1
- three/examples/jsm/nodes/display/ViewportNode.d.ts +8 -0
- three/examples/jsm/nodes/fog/FogExp2Node.d.ts +3 -0
- three/examples/jsm/nodes/fog/FogNode.d.ts +3 -0
- three/examples/jsm/nodes/fog/FogRangeNode.d.ts +3 -0
- three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +1 -1
- three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +1 -1
- three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +1 -1
- three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +1 -1
- three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +1 -1
- three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +1 -1
- three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +1 -1
- three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +1 -1
- three/examples/jsm/nodes/functions/material/getRoughness.d.ts +1 -1
- three/examples/jsm/nodes/geometry/RangeNode.d.ts +3 -0
- three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +7 -0
- three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +6 -1
- three/examples/jsm/nodes/lighting/LightsNode.d.ts +3 -0
- three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +18 -5
- three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +0 -3
- three/examples/jsm/nodes/materials/NodeMaterial.d.ts +25 -2
- three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts +43 -34
- three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts +5 -3
- three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +7 -5
- three/examples/jsm/nodes/math/CondNode.d.ts +7 -0
- three/examples/jsm/nodes/math/MathNode.d.ts +134 -1
- three/examples/jsm/nodes/math/OperatorNode.d.ts +51 -0
- three/examples/jsm/nodes/procedural/CheckerNode.d.ts +3 -0
- three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +75 -33
- three/examples/jsm/nodes/utils/EquirectUVNode.d.ts +4 -2
- three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +3 -0
- three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +6 -3
- three/examples/jsm/nodes/utils/OscNode.d.ts +6 -0
- three/examples/jsm/nodes/utils/RemapNode.d.ts +4 -0
- three/examples/jsm/nodes/utils/RotateUVNode.d.ts +3 -0
- three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +5 -1
- three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +7 -0
- three/examples/jsm/nodes/utils/TimerNode.d.ts +7 -1
- three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts +22 -7
- three/examples/jsm/objects/QuadMesh.d.ts +13 -0
- three/examples/jsm/postprocessing/GTAOPass.d.ts +118 -0
- three/examples/jsm/renderers/common/Info.d.ts +7 -2
- three/examples/jsm/renderers/common/Renderer.d.ts +2 -2
- three/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodes.d.ts +3 -0
- three/examples/jsm/renderers/webgpu/WebGPURenderer.d.ts +1 -0
- three/examples/jsm/shaders/GTAOShader.d.ts +59 -0
- three/examples/jsm/shaders/PoissonDenoiseShader.d.ts +28 -0
- three/examples/jsm/utils/SortUtils.d.ts +7 -0
- three/package.json +3 -3
- three/src/Three.d.ts +2 -0
- three/src/animation/AnimationClip.d.ts +2 -2
- three/src/animation/AnimationMixer.d.ts +1 -1
- three/src/animation/KeyframeTrack.d.ts +3 -3
- three/src/animation/tracks/BooleanKeyframeTrack.d.ts +1 -1
- three/src/animation/tracks/ColorKeyframeTrack.d.ts +1 -1
- 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/audio/Audio.d.ts +1 -1
- three/src/audio/AudioListener.d.ts +1 -1
- three/src/constants.d.ts +3 -1
- three/src/core/BufferAttribute.d.ts +27 -0
- three/src/core/BufferGeometry.d.ts +1 -1
- three/src/core/InterleavedBuffer.d.ts +27 -0
- three/src/core/InterleavedBufferAttribute.d.ts +2 -2
- three/src/core/Object3D.d.ts +48 -14
- three/src/core/Raycaster.d.ts +1 -0
- three/src/core/UniformsGroup.d.ts +3 -3
- three/src/extras/core/Curve.d.ts +2 -2
- three/src/extras/core/Path.d.ts +1 -1
- three/src/extras/core/Shape.d.ts +1 -1
- three/src/extras/core/ShapePath.d.ts +1 -1
- three/src/extras/curves/CatmullRomCurve3.d.ts +2 -2
- three/src/extras/curves/CubicBezierCurve.d.ts +2 -2
- three/src/extras/curves/CubicBezierCurve3.d.ts +2 -2
- three/src/extras/curves/EllipseCurve.d.ts +1 -1
- three/src/extras/curves/LineCurve.d.ts +2 -2
- three/src/extras/curves/LineCurve3.d.ts +2 -2
- three/src/extras/curves/QuadraticBezierCurve.d.ts +2 -2
- three/src/extras/curves/QuadraticBezierCurve3.d.ts +2 -2
- three/src/extras/curves/SplineCurve.d.ts +2 -2
- three/src/geometries/ExtrudeGeometry.d.ts +5 -5
- three/src/geometries/LatheGeometry.d.ts +2 -2
- three/src/geometries/PlaneGeometry.d.ts +1 -1
- three/src/geometries/PolyhedronGeometry.d.ts +1 -1
- three/src/geometries/RingGeometry.d.ts +1 -1
- three/src/geometries/ShapeGeometry.d.ts +2 -2
- three/src/geometries/SphereGeometry.d.ts +1 -1
- three/src/geometries/TorusGeometry.d.ts +1 -1
- three/src/geometries/TorusKnotGeometry.d.ts +1 -1
- three/src/geometries/TubeGeometry.d.ts +3 -3
- three/src/geometries/WireframeGeometry.d.ts +1 -1
- three/src/helpers/ArrowHelper.d.ts +4 -4
- three/src/helpers/AxesHelper.d.ts +1 -1
- three/src/helpers/Box3Helper.d.ts +3 -3
- three/src/helpers/CameraHelper.d.ts +2 -2
- three/src/helpers/DirectionalLightHelper.d.ts +6 -4
- three/src/helpers/GridHelper.d.ts +1 -1
- three/src/helpers/HemisphereLightHelper.d.ts +4 -4
- three/src/helpers/PlaneHelper.d.ts +2 -2
- three/src/helpers/PointLightHelper.d.ts +3 -3
- three/src/helpers/SkeletonHelper.d.ts +4 -4
- three/src/helpers/SpotLightHelper.d.ts +3 -3
- three/src/lights/DirectionalLight.d.ts +1 -1
- three/src/lights/DirectionalLightShadow.d.ts +1 -1
- three/src/lights/HemisphereLight.d.ts +1 -1
- three/src/lights/LightProbe.d.ts +1 -1
- three/src/lights/LightShadow.d.ts +5 -5
- three/src/lights/PointLight.d.ts +7 -0
- three/src/lights/PointLightShadow.d.ts +1 -1
- three/src/lights/SpotLight.d.ts +1 -1
- three/src/lights/SpotLightShadow.d.ts +1 -1
- three/src/loaders/MaterialLoader.d.ts +6 -3
- three/src/materials/LineBasicMaterial.d.ts +7 -0
- three/src/materials/LineDashedMaterial.d.ts +7 -1
- three/src/materials/Material.d.ts +16 -16
- three/src/materials/MeshBasicMaterial.d.ts +9 -2
- three/src/materials/MeshDepthMaterial.d.ts +7 -1
- three/src/materials/MeshDistanceMaterial.d.ts +9 -2
- three/src/materials/MeshLambertMaterial.d.ts +9 -2
- three/src/materials/MeshMatcapMaterial.d.ts +10 -3
- three/src/materials/MeshNormalMaterial.d.ts +9 -2
- three/src/materials/MeshPhongMaterial.d.ts +10 -3
- three/src/materials/MeshPhysicalMaterial.d.ts +6 -1
- three/src/materials/MeshStandardMaterial.d.ts +10 -5
- three/src/materials/MeshToonMaterial.d.ts +10 -3
- three/src/materials/PointsMaterial.d.ts +9 -2
- three/src/materials/RawShaderMaterial.d.ts +9 -0
- three/src/materials/ShaderMaterial.d.ts +9 -3
- three/src/materials/ShadowMaterial.d.ts +8 -1
- three/src/materials/SpriteMaterial.d.ts +9 -4
- three/src/math/Box3.d.ts +2 -2
- three/src/math/Frustum.d.ts +2 -2
- three/src/math/Matrix4.d.ts +30 -30
- three/src/math/Sphere.d.ts +5 -0
- three/src/math/Triangle.d.ts +8 -8
- three/src/math/Vector2.d.ts +1 -1
- three/src/math/Vector4.d.ts +1 -1
- three/src/objects/BatchedMesh.d.ts +169 -0
- three/src/objects/Bone.d.ts +1 -1
- three/src/objects/LOD.d.ts +2 -4
- three/src/objects/Line.d.ts +2 -4
- three/src/objects/LineLoop.d.ts +1 -1
- three/src/objects/LineSegments.d.ts +1 -1
- three/src/objects/Skeleton.d.ts +2 -8
- three/src/objects/SkinnedMesh.d.ts +1 -2
- three/src/renderers/WebGL3DRenderTarget.d.ts +7 -5
- three/src/renderers/WebGLArrayRenderTarget.d.ts +7 -5
- three/src/renderers/WebGLCubeRenderTarget.d.ts +2 -2
- three/src/renderers/WebGLRenderTarget.d.ts +1 -1
- three/src/renderers/shaders/ShaderChunk.d.ts +1 -0
- three/src/renderers/shaders/ShaderLib.d.ts +18 -18
- three/src/renderers/shaders/UniformsUtils.d.ts +3 -2
- three/src/renderers/webgl/WebGLAttributes.d.ts +1 -0
- three/src/renderers/webgl/WebGLBindingStates.d.ts +4 -4
- three/src/renderers/webgl/WebGLBufferRenderer.d.ts +4 -3
- three/src/renderers/webgl/WebGLClipping.d.ts +2 -2
- three/src/renderers/webgl/WebGLIndexedBufferRenderer.d.ts +5 -4
- three/src/renderers/webgl/WebGLLights.d.ts +39 -37
- three/src/renderers/webgl/WebGLPrograms.d.ts +225 -10
- three/src/renderers/webgl/WebGLRenderLists.d.ts +5 -5
- three/src/renderers/webgl/WebGLShadowMap.d.ts +2 -2
- three/src/scenes/Fog.d.ts +1 -1
- three/src/scenes/FogExp2.d.ts +1 -1
- three/src/textures/CompressedCubeTexture.d.ts +13 -0
- three/src/textures/Texture.d.ts +1 -1
- three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +0 -310
- three/examples/jsm/nodes/shadernode/ShaderNodeElements.d.ts +0 -166
- three/examples/jsm/objects/BatchedMesh.d.ts +0 -57
- three/examples/jsm/renderers/common/Animation.d.ts +0 -16
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import Node from '../core/Node.js';
|
|
2
|
-
import RangeNode, { RangeModeBound } from '../geometry/RangeNode.js';
|
|
3
|
-
import { NodeRepresentation, Swizzable } from './ShaderNode.js';
|
|
4
|
-
import {
|
|
5
|
-
CubeTexture,
|
|
6
|
-
InstancedMesh,
|
|
7
|
-
Light,
|
|
8
|
-
SkinnedMesh,
|
|
9
|
-
Texture,
|
|
10
|
-
TextureEncoding,
|
|
11
|
-
ToneMapping,
|
|
12
|
-
} from '../../../../src/Three.js';
|
|
13
|
-
import LightingContextNode, { LightingModelNode } from '../lighting/LightingContextNode.js';
|
|
14
|
-
import {
|
|
15
|
-
BlendModeNode,
|
|
16
|
-
CheckerNode,
|
|
17
|
-
ColorAdjustmentNode,
|
|
18
|
-
ColorSpaceNode,
|
|
19
|
-
CubeTextureNode,
|
|
20
|
-
EquirectUVNode,
|
|
21
|
-
FogNode,
|
|
22
|
-
FogRangeNode,
|
|
23
|
-
FogExp2Node,
|
|
24
|
-
InstanceNode,
|
|
25
|
-
LightsNode,
|
|
26
|
-
MatcapUVNode,
|
|
27
|
-
NormalMapNode,
|
|
28
|
-
OscNode,
|
|
29
|
-
PosterizeNode,
|
|
30
|
-
RemapNode,
|
|
31
|
-
ReflectVectorNode,
|
|
32
|
-
RotateUVNode,
|
|
33
|
-
SkinningNode,
|
|
34
|
-
SpriteSheetUVNode,
|
|
35
|
-
TimerNode,
|
|
36
|
-
ToneMappingNode,
|
|
37
|
-
TriplanarTexturesNode,
|
|
38
|
-
SpecularMIPLevelNode,
|
|
39
|
-
ViewportNode,
|
|
40
|
-
} from '../Nodes.js';
|
|
41
|
-
|
|
42
|
-
//
|
|
43
|
-
// Node Material Shader Syntax
|
|
44
|
-
//
|
|
45
|
-
|
|
46
|
-
// shader node base
|
|
47
|
-
|
|
48
|
-
export * from './ShaderNodeBaseElements.js';
|
|
49
|
-
|
|
50
|
-
// functions
|
|
51
|
-
|
|
52
|
-
export { default as BRDF_GGX } from '../functions/BSDF/BRDF_GGX.js'; // see https://github.com/tc39/proposal-export-default-from
|
|
53
|
-
export { default as BRDF_Lambert } from '../functions/BSDF/BRDF_Lambert.js';
|
|
54
|
-
export { default as D_GGX } from '../functions/BSDF/D_GGX.js';
|
|
55
|
-
export { default as DFGApprox } from '../functions/BSDF/DFGApprox.js';
|
|
56
|
-
export { default as F_Schlick } from '../functions/BSDF/F_Schlick.js';
|
|
57
|
-
export { default as V_GGX_SmithCorrelated } from '../functions/BSDF/V_GGX_SmithCorrelated.js';
|
|
58
|
-
|
|
59
|
-
export { default as getGeometryRoughness } from '../functions/material/getGeometryRoughness.js';
|
|
60
|
-
export { default as getRoughness } from '../functions/material/getRoughness.js';
|
|
61
|
-
|
|
62
|
-
export { default as PhysicalLightingModel } from '../functions/PhysicalLightingModel.js';
|
|
63
|
-
|
|
64
|
-
// accessors
|
|
65
|
-
|
|
66
|
-
export function cubeTexture(
|
|
67
|
-
value: CubeTexture,
|
|
68
|
-
uvNode?: NodeRepresentation,
|
|
69
|
-
levelNode?: NodeRepresentation,
|
|
70
|
-
): Swizzable<CubeTextureNode>;
|
|
71
|
-
export function instance(instanceMesh: InstancedMesh): Swizzable<InstanceNode>;
|
|
72
|
-
export const reflectVector: Swizzable<ReflectVectorNode>;
|
|
73
|
-
export function skinning(skinnedMesh: SkinnedMesh): Swizzable<SkinningNode>;
|
|
74
|
-
|
|
75
|
-
// display
|
|
76
|
-
|
|
77
|
-
export function burn(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>;
|
|
78
|
-
export function dodge(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>;
|
|
79
|
-
export function overlay(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>;
|
|
80
|
-
export function screen(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>;
|
|
81
|
-
|
|
82
|
-
export function saturation(
|
|
83
|
-
colorNode: NodeRepresentation,
|
|
84
|
-
adjustmentNode?: NodeRepresentation,
|
|
85
|
-
): Swizzable<ColorAdjustmentNode>;
|
|
86
|
-
export function vibrance(
|
|
87
|
-
colorNode: NodeRepresentation,
|
|
88
|
-
adjustmentNode?: NodeRepresentation,
|
|
89
|
-
): Swizzable<ColorAdjustmentNode>;
|
|
90
|
-
export function hue(colorNode: NodeRepresentation, adjustmentNode?: NodeRepresentation): Swizzable<ColorAdjustmentNode>;
|
|
91
|
-
|
|
92
|
-
export function colorSpace(node: NodeRepresentation, encoding: TextureEncoding): Swizzable<ColorSpaceNode>;
|
|
93
|
-
export function normalMap(node: Node, scaleNode?: Node): Swizzable<NormalMapNode>;
|
|
94
|
-
export function toneMapping(
|
|
95
|
-
mapping: ToneMapping,
|
|
96
|
-
exposure: NodeRepresentation,
|
|
97
|
-
color: NodeRepresentation,
|
|
98
|
-
): Swizzable<ToneMappingNode>;
|
|
99
|
-
|
|
100
|
-
export function posterize(sourceNode: NodeRepresentation, stepsNode: NodeRepresentation): Swizzable<PosterizeNode>;
|
|
101
|
-
|
|
102
|
-
export const viewportCoordinate: Swizzable<ViewportNode>;
|
|
103
|
-
export const viewportResolution: Swizzable<ViewportNode>;
|
|
104
|
-
export const viewportTopLeft: Swizzable<ViewportNode>;
|
|
105
|
-
export const viewportBottomLeft: Swizzable<ViewportNode>;
|
|
106
|
-
export const viewportTopRight: Swizzable<ViewportNode>;
|
|
107
|
-
export const viewportBottomRight: Swizzable<ViewportNode>;
|
|
108
|
-
|
|
109
|
-
// lighting
|
|
110
|
-
|
|
111
|
-
export function lights(lights: Light[]): Swizzable<LightsNode>;
|
|
112
|
-
export function lightingContext(node: Node, lightingModelNode?: LightingModelNode): Swizzable<LightingContextNode>;
|
|
113
|
-
|
|
114
|
-
// utils
|
|
115
|
-
|
|
116
|
-
export const matcapUV: Swizzable<MatcapUVNode>;
|
|
117
|
-
export const equirectUV: Swizzable<EquirectUVNode>;
|
|
118
|
-
|
|
119
|
-
export function specularMIPLevel(): Swizzable<SpecularMIPLevelNode>;
|
|
120
|
-
|
|
121
|
-
export function oscSine(timeNode?: NodeRepresentation): Swizzable<OscNode>;
|
|
122
|
-
export function oscSquare(timeNode?: NodeRepresentation): Swizzable<OscNode>;
|
|
123
|
-
export function oscTriangle(timeNode?: NodeRepresentation): Swizzable<OscNode>;
|
|
124
|
-
export function oscSawtooth(timeNode?: NodeRepresentation): Swizzable<OscNode>;
|
|
125
|
-
|
|
126
|
-
export function remap(node: Node, inLowNode: Node): Swizzable<RemapNode>;
|
|
127
|
-
export function remapClamp(node: Node, inLowNode: Node): Swizzable<RemapNode>;
|
|
128
|
-
|
|
129
|
-
export function rotateUV(uvNode: Node, rotationNode: Node, centerNode?: Node): Swizzable<RotateUVNode>;
|
|
130
|
-
|
|
131
|
-
export function spritesheetUV(
|
|
132
|
-
countNode: NodeRepresentation,
|
|
133
|
-
uvNode?: NodeRepresentation,
|
|
134
|
-
frameNode?: NodeRepresentation,
|
|
135
|
-
): Swizzable<SpriteSheetUVNode>;
|
|
136
|
-
|
|
137
|
-
export function timerLocal(timeScale: number, value?: number): Swizzable<TimerNode>;
|
|
138
|
-
export function timerGlobal(timeScale: number, value?: number): Swizzable<TimerNode>;
|
|
139
|
-
export function timerDelta(timeScale: number, value?: number): Swizzable<TimerNode>;
|
|
140
|
-
export const frameId: Swizzable<TimerNode>;
|
|
141
|
-
export function triplanarTextures(
|
|
142
|
-
textureXNode: NodeRepresentation,
|
|
143
|
-
textureYNode?: NodeRepresentation,
|
|
144
|
-
textureZNode?: NodeRepresentation,
|
|
145
|
-
scaleNode?: NodeRepresentation,
|
|
146
|
-
positionNode?: NodeRepresentation,
|
|
147
|
-
normalNode?: NodeRepresentation,
|
|
148
|
-
): Swizzable<TriplanarTexturesNode>;
|
|
149
|
-
export function triplanarTexture(
|
|
150
|
-
texture: NodeRepresentation,
|
|
151
|
-
...params: NodeRepresentation[]
|
|
152
|
-
): Swizzable<TriplanarTexturesNode>;
|
|
153
|
-
|
|
154
|
-
// geometry
|
|
155
|
-
|
|
156
|
-
export function range(min: RangeModeBound, max: RangeModeBound): Swizzable<RangeNode>;
|
|
157
|
-
|
|
158
|
-
// procedural
|
|
159
|
-
|
|
160
|
-
export function checker(uvNode?: NodeRepresentation): Swizzable<CheckerNode>;
|
|
161
|
-
|
|
162
|
-
// fog
|
|
163
|
-
|
|
164
|
-
export function fog(colorNode: NodeRepresentation, factorNode: NodeRepresentation): Swizzable<FogNode>;
|
|
165
|
-
export function rangeFog(colorNode: Node, nearNode: Node, farNode: Node): Swizzable<FogRangeNode>;
|
|
166
|
-
export function exp2Fog(colorNode: Node, densityNode: Node): Swizzable<FogExp2Node>;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Matrix4, Mesh, BufferGeometry, Material, DataTexture, IUniform } from '../../../src/Three.js';
|
|
2
|
-
|
|
3
|
-
declare class BatchedMesh extends Mesh<BufferGeometry, Material> {
|
|
4
|
-
_vertexStarts: number[];
|
|
5
|
-
_vertexCounts: number[];
|
|
6
|
-
_indexStarts: number[];
|
|
7
|
-
_indexCounts: number[];
|
|
8
|
-
|
|
9
|
-
_visible: boolean[];
|
|
10
|
-
_active: boolean[];
|
|
11
|
-
|
|
12
|
-
_maxGeometryCount: number;
|
|
13
|
-
_maxVertexCount: number;
|
|
14
|
-
_maxIndexCount: number;
|
|
15
|
-
|
|
16
|
-
_geometryInitialized: boolean;
|
|
17
|
-
_geometryCount: number;
|
|
18
|
-
_vertexCount: number;
|
|
19
|
-
_indexCount: number;
|
|
20
|
-
|
|
21
|
-
_matrices: Matrix4[];
|
|
22
|
-
_matricesTexture: DataTexture | null;
|
|
23
|
-
|
|
24
|
-
_customUniforms: Record<string, IUniform>;
|
|
25
|
-
|
|
26
|
-
constructor(maxGeometryCount: number, maxVertexCount: number, maxIndexCount?: number, material?: Material);
|
|
27
|
-
|
|
28
|
-
_initMatricesTexture(): void;
|
|
29
|
-
|
|
30
|
-
_initShader(): void;
|
|
31
|
-
|
|
32
|
-
_initializeGeometry(reference: BufferGeometry): void;
|
|
33
|
-
|
|
34
|
-
getGeometryCount(): number;
|
|
35
|
-
|
|
36
|
-
getVertexCount(): number;
|
|
37
|
-
|
|
38
|
-
getIndexCount(): number;
|
|
39
|
-
|
|
40
|
-
applyGeometry(geometry: BufferGeometry): number;
|
|
41
|
-
|
|
42
|
-
deleteGeometry(geometryId: number): this;
|
|
43
|
-
|
|
44
|
-
optimize(): never;
|
|
45
|
-
|
|
46
|
-
setMatrixAt(geometryId: number, matrix: Matrix4): this;
|
|
47
|
-
|
|
48
|
-
getMatrixAt(geometryId: number, matrix: Matrix4): Matrix4;
|
|
49
|
-
|
|
50
|
-
setVisibleAt(geometryId: number, value: boolean): this;
|
|
51
|
-
|
|
52
|
-
getVisibleAt(geometryId: number): boolean;
|
|
53
|
-
|
|
54
|
-
dispose(): this;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export { BatchedMesh };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export default class Animation {
|
|
2
|
-
animationLoop: ((time: DOMHighResTimeStamp) => void) | null;
|
|
3
|
-
requestId: number | null;
|
|
4
|
-
|
|
5
|
-
isAnimating: boolean;
|
|
6
|
-
|
|
7
|
-
context: Window;
|
|
8
|
-
|
|
9
|
-
constructor();
|
|
10
|
-
|
|
11
|
-
start(): void;
|
|
12
|
-
|
|
13
|
-
stop(): void;
|
|
14
|
-
|
|
15
|
-
setAnimationLoop(callback: ((time: DOMHighResTimeStamp) => void) | null): void;
|
|
16
|
-
}
|