Skip to content

Commit

Permalink
Add addons entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofugaro committed Jan 28, 2022
1 parent 2d80739 commit 2d3d558
Show file tree
Hide file tree
Showing 3 changed files with 334 additions and 0 deletions.
301 changes: 301 additions & 0 deletions examples/jsm/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,301 @@

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 './nodes/Nodes.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 * 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/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/BokehShader.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';
32 changes: 32 additions & 0 deletions examples/jsm/renderers/webgpu/WebGPU.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

export * from './constants.js';
export { default as WebGPUTextures } from './WebGPUTextures.js';
export { default as WebGPUInfo } from './WebGPUInfo.js';
export { default as WebGPUProgrammableStage } from './WebGPUProgrammableStage.js';
export { default as WebGPURenderLists } from './WebGPURenderLists.js';
export { default as WebGPUTextureRenderer } from './WebGPUTextureRenderer.js';
export { default as WebGPURenderPipelines } from './WebGPURenderPipelines.js';
export { default as WebGPUGeometries } from './WebGPUGeometries.js';
export { default as WebGPUNodeBuilder } from './nodes/WebGPUNodeBuilder.js';
export { WebGPUNodeSampledTexture } from './nodes/WebGPUNodeSampledTexture.js';
export * from './nodes/WebGPUNodeUniform.js';
export { default as WebGPUNodeSampler } from './nodes/WebGPUNodeSampler.js';
export { default as WebGPUNodeUniformsGroup } from './nodes/WebGPUNodeUniformsGroup.js';
export { default as WebGPUNodes } from './nodes/WebGPUNodes.js';
export { default as WebGPUBindings } from './WebGPUBindings.js';
export * from './WebGPUSampledTexture.js';
export { default as WebGPUUniformsGroup } from './WebGPUUniformsGroup.js';
export { default as WebGPURenderer } from './WebGPURenderer.js';
export { default as WebGPUComputePipelines } from './WebGPUComputePipelines.js';
export * from './WebGPUUniform.js';
export { default as WebGPUObjects } from './WebGPUObjects.js';
export { default as WebGPUSampler } from './WebGPUSampler.js';
export { default as WebGPURenderPipeline } from './WebGPURenderPipeline.js';
export { default as WebGPUBackground } from './WebGPUBackground.js';
export { default as WebGPUBinding } from './WebGPUBinding.js';
export { default as WebGPUProperties } from './WebGPUProperties.js';
export { default as WebGPUUniformBuffer } from './WebGPUUniformBuffer.js';
export { default as WebGPUAttributes } from './WebGPUAttributes.js';
export * as WebGPUBufferUtils from './WebGPUBufferUtils.js';
export { default as WebGPUStorageBuffer } from './WebGPUStorageBuffer.js';
export { default as WebGPUTextureUtils } from './WebGPUTextureUtils.js';
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"import": "./build/three.module.js",
"require": "./build/three.cjs"
},
"./addons": "./examples/jsm/addons.js",
"./examples/fonts/*": "./examples/fonts/*",
"./examples/jsm/*": "./examples/jsm/*",
"./src/*": "./src/*"
Expand Down

0 comments on commit 2d3d558

Please sign in to comment.