Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add three/addons (for npm users only) #23368

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
299 changes: 299 additions & 0 deletions examples/jsm/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,299 @@

export * from './animation/AnimationClipCreator.js';
export * from './animation/CCDIKSolver.js';
export * from './animation/MMDPhysics.js';
export * from './animation/MMDAnimationHelper.js';

export * from './cameras/CinematicCamera.js';

export { default as WebGL } from './capabilities/WebGL.js';
export { default as WebGPU } from './capabilities/WebGPU.js';

export * from './controls/FirstPersonControls.js';
export * from './controls/TransformControls.js';
export * from './controls/DragControls.js';
export * from './controls/PointerLockControls.js';
export * from './controls/ArcballControls.js';
export * from './controls/TrackballControls.js';
export * from './controls/OrbitControls.js';
export * from './controls/FlyControls.js';

export * from './csm/CSM.js';
export * from './csm/CSMShader.js';
export * from './csm/CSMFrustum.js';
export * from './csm/CSMHelper.js';

export * as NURBSUtils from './curves/NURBSUtils.js';
export * from './curves/NURBSCurve.js';
export * from './curves/NURBSSurface.js';
export * as Curves from './curves/CurveExtras.js';

export * from './deprecated/Geometry.js';

export * from './effects/ParallaxBarrierEffect.js';
export * from './effects/PeppersGhostEffect.js';
export * from './effects/OutlineEffect.js';
export * from './effects/AnaglyphEffect.js';
export * from './effects/AsciiEffect.js';
export * from './effects/StereoEffect.js';

export * from './environments/DebugEnvironment.js';
export * from './environments/RoomEnvironment.js';

export * from './exporters/GLTFExporter.js';
export * from './exporters/USDZExporter.js';
export * from './exporters/PLYExporter.js';
export * from './exporters/DRACOExporter.js';
export * from './exporters/ColladaExporter.js';
export * from './exporters/MMDExporter.js';
export * from './exporters/STLExporter.js';
export * from './exporters/OBJExporter.js';

export * from './geometries/ParametricGeometries.js';
export * from './geometries/TextGeometry.js';
export * from './geometries/ConvexGeometry.js';
export * from './geometries/ParametricGeometry.js';
export * from './geometries/LightningStrike.js';
export * from './geometries/RoundedBoxGeometry.js';
export * from './geometries/BoxLineGeometry.js';
export * from './geometries/DecalGeometry.js';
export * from './geometries/TeapotGeometry.js';

export * from './helpers/LightProbeHelper.js';
export * from './helpers/VertexTangentsHelper.js';
export * from './helpers/PositionalAudioHelper.js';
export * from './helpers/VertexNormalsHelper.js';
export * from './helpers/RectAreaLightHelper.js';


export * from './interactive/SelectionHelper.js';
export * from './interactive/InteractiveGroup.js';
export * from './interactive/HTMLMesh.js';
export * from './interactive/SelectionBox.js';

export * from './lights/RectAreaLightUniformsLib.js';
export * from './lights/LightProbeGenerator.js';


export * from './lines/LineSegmentsGeometry.js';
export * from './lines/LineGeometry.js';
export * from './lines/Wireframe.js';
export * from './lines/WireframeGeometry2.js';
export * from './lines/Line2.js';
export * from './lines/LineMaterial.js';
export * from './lines/LineSegments2.js';


export * from './loaders/FBXLoader.js';
export * from './loaders/TGALoader.js';
export * from './loaders/LUTCubeLoader.js';
export * from './loaders/NRRDLoader.js';
export * from './loaders/IFCLoader.js';
export * from './loaders/FontLoader.js';
export * from './loaders/STLLoader.js';
export * from './loaders/MTLLoader.js';
export * from './loaders/BVHLoader.js';
export * from './loaders/KMZLoader.js';
export * from './loaders/VRMLoader.js';
export * from './loaders/VRMLLoader.js';
export * from './loaders/KTX2Loader.js';
export * from './loaders/LogLuvLoader.js';
export * from './loaders/LottieLoader.js';
export * from './loaders/TTFLoader.js';
export * from './loaders/RGBELoader.js';
export * from './loaders/ColladaLoader.js';
export * from './loaders/MDDLoader.js';
export * from './loaders/EXRLoader.js';
export * from './loaders/3MFLoader.js';
export * from './loaders/XYZLoader.js';
export * from './loaders/VTKLoader.js';
export * from './loaders/LUT3dlLoader.js';
export * from './loaders/DDSLoader.js';
export * from './loaders/PVRLoader.js';
export * from './loaders/GCodeLoader.js';
export * from './loaders/BasisTextureLoader.js';
export * from './loaders/TDSLoader.js';
export * from './loaders/LDrawLoader.js';
export * from './loaders/GLTFLoader.js';
export * from './loaders/lwo/IFFParser.js';
export * from './loaders/SVGLoader.js';
export * from './loaders/3DMLoader.js';
export * from './loaders/OBJLoader.js';
export * from './loaders/AMFLoader.js';
export * from './loaders/MMDLoader.js';
export * from './loaders/MD2Loader.js';
export * from './loaders/KTXLoader.js';
export * from './loaders/TiltLoader.js';
export * from './loaders/DRACOLoader.js';
export * from './loaders/HDRCubeTextureLoader.js';
export * from './loaders/PDBLoader.js';
export * from './loaders/PRWMLoader.js';
export * from './loaders/RGBMLoader.js';
export * from './loaders/VOXLoader.js';
export * from './loaders/NodeMaterialLoader.js';
export * from './loaders/PCDLoader.js';
export * from './loaders/LWOLoader.js';
export * from './loaders/PLYLoader.js';

export * from './objects/Lensflare.js';
export * from './objects/MarchingCubes.js';
export * from './objects/LightningStorm.js';
export * from './objects/ReflectorRTT.js';
export * from './objects/ReflectorForSSRPass.js';
export * from './objects/Reflector.js';
export * from './objects/Refractor.js';
export * from './objects/ShadowMesh.js';
export * from './objects/Sky.js';
export * from './objects/Water.js';
export { Water as Water2 } from './objects/Water2.js';

export * from './math/ConvexHull.js';
export * from './math/MeshSurfaceSampler.js';
export * from './math/SimplexNoise.js';
export * from './math/OBB.js';
export * from './math/Capsule.js';
export * from './math/ColorConverter.js';
export * from './math/ImprovedNoise.js';
export * from './math/Octree.js';
export * from './math/Lut.js';

export * from './misc/MD2CharacterComplex.js';
export * from './misc/ConvexObjectBreaker.js';
export * from './misc/MorphBlendMesh.js';
export * from './misc/GPUComputationRenderer.js';
export * from './misc/Gyroscope.js';
export * from './misc/MorphAnimMesh.js';
export * from './misc/ProgressiveLightMap.js';
export * from './misc/RollerCoaster.js';
export * from './misc/MD2Character.js';
export * from './misc/VolumeSlice.js';
export * from './misc/TubePainter.js';
export * from './misc/Volume.js';

export * from './modifiers/CurveModifier.js';
export * from './modifiers/SimplifyModifier.js';
export * from './modifiers/EdgeSplitModifier.js';
export * from './modifiers/TessellateModifier.js';

export * from './physics/OimoPhysics.js';
export * from './physics/AmmoPhysics.js';

export * from './postprocessing/LUTPass.js';
export * from './postprocessing/ClearPass.js';
export * from './postprocessing/GlitchPass.js';
export * from './postprocessing/HalftonePass.js';
export * from './postprocessing/SMAAPass.js';
export * from './postprocessing/FilmPass.js';
export * from './postprocessing/OutlinePass.js';
export * from './postprocessing/SSAOPass.js';
export * from './postprocessing/SavePass.js';
export * from './postprocessing/BokehPass.js';
export * from './postprocessing/SSRrPass.js';
export * from './postprocessing/Pass.js';
export * from './postprocessing/TexturePass.js';
export * from './postprocessing/AdaptiveToneMappingPass.js';
export * from './postprocessing/UnrealBloomPass.js';
export * from './postprocessing/CubeTexturePass.js';
export * from './postprocessing/SAOPass.js';
export * from './postprocessing/AfterimagePass.js';
export * from './postprocessing/MaskPass.js';
export * from './postprocessing/EffectComposer.js';
export * from './postprocessing/DotScreenPass.js';
export * from './postprocessing/SSRPass.js';
export * from './postprocessing/TAARenderPass.js';
export * from './postprocessing/ShaderPass.js';
export * from './postprocessing/SSAARenderPass.js';
export * from './postprocessing/RenderPass.js';
export * from './postprocessing/BloomPass.js';

export * from './renderers/CSS2DRenderer.js';
export * from './renderers/CSS3DRenderer.js';
export * from './renderers/Projector.js';
export * from './renderers/SVGRenderer.js';
export * from './renderers/webgpu/WebGPU.js';
export * from './renderers/nodes/Nodes.js';
export * from './node-editor/NodeEditor.js';
export { default as WebGLPhysicalContextNode } from './renderers/webgl/nodes/WebGLPhysicalContextNode.js';
export * from './renderers/webgl/nodes/WebGLNodeBuilder.js';
export { default as SlotNode } from './renderers/webgl/nodes/SlotNode.js';
export * from './renderers/webgl/nodes/WebGLNodes.js';


export * from './shaders/SMAAShader.js';
export * from './shaders/HalftoneShader.js';
export * from './shaders/ConvolutionShader.js';
export * from './shaders/SAOShader.js';
export * from './shaders/GodRaysShader.js';
export * from './shaders/LuminosityShader.js';
export * from './shaders/MirrorShader.js';
export * from './shaders/ToneMapShader.js';
export * from './shaders/BleachBypassShader.js';
export * from './shaders/MMDToonShader.js';
export * from './shaders/BlendShader.js';
export * from './shaders/KaleidoShader.js';
export * from './shaders/ACESFilmicToneMappingShader.js';
export * from './shaders/VerticalBlurShader.js';
export * from './shaders/SSRrShader.js';
export * from './shaders/ColorCorrectionShader.js';
export * from './shaders/PixelShader.js';
export * from './shaders/BokehShader.js';
export { BokehShader as BokehShader2 } from './shaders/BokehShader2.js';
export * from './shaders/FocusShader.js';
export * from './shaders/WaterRefractionShader.js';
export * from './shaders/RGBShiftShader.js';
export * from './shaders/TriangleBlurShader.js';
export * from './shaders/FilmShader.js';
export * from './shaders/SepiaShader.js';
export * from './shaders/FXAAShader.js';
export * from './shaders/AfterimageShader.js';
export * from './shaders/DotScreenShader.js';
export * from './shaders/SubsurfaceScatteringShader.js';
export * from './shaders/ToonShader.js';
export * from './shaders/DepthLimitedBlurShader.js';
export * from './shaders/NormalMapShader.js';
export * from './shaders/FreiChenShader.js';
export * from './shaders/VolumeShader.js';
export * from './shaders/HorizontalTiltShiftShader.js';
export * from './shaders/VerticalTiltShiftShader.js';
export * from './shaders/BrightnessContrastShader.js';
export * from './shaders/SobelOperatorShader.js';
export * from './shaders/SSAOShader.js';
export * from './shaders/GammaCorrectionShader.js';
export * from './shaders/VignetteShader.js';
export * from './shaders/HorizontalBlurShader.js';
export * from './shaders/UnpackDepthRGBAShader.js';
export * from './shaders/HueSaturationShader.js';
export * from './shaders/DigitalGlitch.js';
export * from './shaders/BasicShader.js';
export * from './shaders/CopyShader.js';
export * from './shaders/LuminosityHighPassShader.js';
export * from './shaders/DOFMipMapShader.js';
export * from './shaders/SSRShader.js';
export * from './shaders/TechnicolorShader.js';
export * from './shaders/ColorifyShader.js';

export * from './textures/FlakesTexture.js';

export * as BufferGeometryUtils from './utils/BufferGeometryUtils.js';
export * as CameraUtils from './utils/CameraUtils.js';
export * as GeometryUtils from './utils/GeometryUtils.js';
export * from './utils/GPUStatsPanel.js';
export * as GeometryCompressionUtils from './utils/GeometryCompressionUtils.js';
export * as LDrawUtils from './utils/LDrawUtils.js';
export * from './utils/PackedPhongMaterial.js';
export * as SceneUtils from './utils/SceneUtils.js';
export * from './utils/ShadowMapViewer.js';
export * as SkeletonUtils from './utils/SkeletonUtils.js';
export * from './utils/UVsDebug.js';
export * from './utils/WorkerPool.js';

export * from './webxr/XRHandMeshModel.js';
export * from './webxr/XRHandModelFactory.js';
export * from './webxr/XREstimatedLight.js';
export * from './webxr/XRControllerModelFactory.js';
export * from './webxr/OculusHandModel.js';
export * from './webxr/OculusHandPointerModel.js';
export * from './webxr/VRButton.js';
export * from './webxr/Text2D.js';
export * from './webxr/XRHandPrimitiveModel.js';
export * from './webxr/ARButton.js';
4 changes: 3 additions & 1 deletion examples/jsm/csm/CSM.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const _bbox = new Box3();
const _uniformArray = [];
const _logArray = [];

export class CSM {
class CSM {

constructor( data ) {

Expand Down Expand Up @@ -375,3 +375,5 @@ export class CSM {
}

}

export { CSM };
32 changes: 15 additions & 17 deletions examples/jsm/curves/CurveExtras.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,21 +404,19 @@ class DecoratedTorusKnot5c extends Curve {

}

const Curves = {
GrannyKnot: GrannyKnot,
HeartCurve: HeartCurve,
VivianiCurve: VivianiCurve,
KnotCurve: KnotCurve,
HelixCurve: HelixCurve,
TrefoilKnot: TrefoilKnot,
TorusKnot: TorusKnot,
CinquefoilKnot: CinquefoilKnot,
TrefoilPolynomialKnot: TrefoilPolynomialKnot,
FigureEightPolynomialKnot: FigureEightPolynomialKnot,
DecoratedTorusKnot4a: DecoratedTorusKnot4a,
DecoratedTorusKnot4b: DecoratedTorusKnot4b,
DecoratedTorusKnot5a: DecoratedTorusKnot5a,
DecoratedTorusKnot5c: DecoratedTorusKnot5c
export {
GrannyKnot,
HeartCurve,
VivianiCurve,
KnotCurve,
HelixCurve,
TrefoilKnot,
TorusKnot,
CinquefoilKnot,
TrefoilPolynomialKnot,
FigureEightPolynomialKnot,
DecoratedTorusKnot4a,
DecoratedTorusKnot4b,
DecoratedTorusKnot5a,
DecoratedTorusKnot5c
};

export { Curves };
4 changes: 3 additions & 1 deletion examples/jsm/loaders/LUT3dlLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
LinearFilter,
} from 'three';

export class LUT3dlLoader extends Loader {
class LUT3dlLoader extends Loader {

load( url, onLoad, onProgress, onError ) {

Expand Down Expand Up @@ -149,3 +149,5 @@ export class LUT3dlLoader extends Loader {
}

}

export { LUT3dlLoader };
Loading