super-three 0.136.1 → 0.144.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.
- package/README.md +31 -33
- package/build/three.cjs +36413 -0
- package/build/three.js +5108 -5809
- package/build/three.min.js +2 -2
- package/build/three.module.js +7877 -8586
- package/examples/js/animation/CCDIKSolver.js +3 -2
- package/examples/js/animation/MMDAnimationHelper.js +3 -1
- package/examples/js/animation/MMDPhysics.js +3 -18
- package/examples/js/controls/ArcballControls.js +19 -4
- package/examples/js/controls/FirstPersonControls.js +0 -7
- package/examples/js/controls/FlyControls.js +0 -8
- package/examples/js/controls/OrbitControls.js +0 -4
- package/examples/js/controls/PointerLockControls.js +3 -10
- package/examples/js/controls/TrackballControls.js +1 -6
- package/examples/js/controls/TransformControls.js +25 -22
- package/examples/js/csm/CSMFrustum.js +1 -1
- package/examples/js/csm/CSMShader.js +51 -35
- package/examples/js/curves/CurveExtras.js +14 -18
- package/examples/js/effects/AnaglyphEffect.js +9 -6
- package/examples/js/effects/AsciiEffect.js +10 -29
- package/examples/js/effects/OutlineEffect.js +4 -24
- package/examples/js/effects/ParallaxBarrierEffect.js +2 -2
- package/examples/js/effects/PeppersGhostEffect.js +2 -2
- package/examples/js/effects/StereoEffect.js +2 -2
- package/examples/js/environments/RoomEnvironment.js +22 -0
- package/examples/js/exporters/ColladaExporter.js +33 -20
- package/examples/js/exporters/DRACOExporter.js +0 -12
- package/examples/js/exporters/EXRExporter.js +458 -0
- package/examples/js/exporters/GLTFExporter.js +246 -119
- package/examples/js/exporters/OBJExporter.js +14 -41
- package/examples/js/exporters/PLYExporter.js +27 -44
- package/examples/js/exporters/STLExporter.js +0 -7
- package/examples/js/exporters/USDZExporter.js +19 -0
- package/examples/js/geometries/ConvexGeometry.js +1 -1
- package/examples/js/geometries/DecalGeometry.js +0 -7
- package/examples/js/geometries/LightningStrike.js +2 -2
- package/examples/js/geometries/ParametricGeometries.js +3 -3
- package/examples/js/geometries/ParametricGeometry.js +1 -8
- package/examples/js/geometries/TextGeometry.js +12 -10
- package/examples/js/helpers/OctreeHelper.js +74 -0
- package/examples/js/helpers/VertexNormalsHelper.js +4 -23
- package/examples/js/helpers/VertexTangentsHelper.js +3 -13
- package/examples/js/helpers/ViewHelper.js +266 -0
- package/examples/js/interactive/HTMLMesh.js +249 -42
- package/examples/js/interactive/SelectionHelper.js +3 -1
- package/examples/js/libs/ktx-parse.umd.js +1 -0
- package/examples/js/libs/meshopt_decoder.js +98 -32
- package/examples/js/libs/opentype.min.js +1 -118
- package/examples/js/lines/Line2.js +1 -2
- package/examples/js/lines/LineGeometry.js +10 -21
- package/examples/js/lines/LineMaterial.js +2 -3
- package/examples/js/lines/LineSegments2.js +214 -140
- package/examples/js/lines/LineSegmentsGeometry.js +3 -14
- package/examples/js/lines/Wireframe.js +2 -3
- package/examples/js/lines/WireframeGeometry2.js +1 -2
- package/examples/js/loaders/3MFLoader.js +21 -17
- package/examples/js/loaders/AMFLoader.js +1 -1
- package/examples/js/loaders/ColladaLoader.js +34 -12
- package/examples/js/loaders/DDSLoader.js +23 -30
- package/examples/js/loaders/DRACOLoader.js +2 -25
- package/examples/js/loaders/EXRLoader.js +279 -276
- package/examples/js/loaders/FBXLoader.js +21 -3
- package/examples/js/loaders/FontLoader.js +4 -18
- package/examples/js/loaders/GCodeLoader.js +0 -1
- package/examples/js/loaders/GLTFLoader.js +300 -95
- package/examples/js/loaders/HDRCubeTextureLoader.js +0 -11
- package/examples/js/loaders/KMZLoader.js +1 -1
- package/examples/js/loaders/LDrawLoader.js +653 -480
- package/examples/js/loaders/LUT3dlLoader.js +1 -1
- package/examples/js/loaders/LUTCubeLoader.js +1 -1
- package/examples/js/loaders/LWOLoader.js +4 -2
- package/examples/js/loaders/LogLuvLoader.js +1 -2
- package/examples/js/loaders/MD2Loader.js +5 -5
- package/examples/js/loaders/MMDLoader.js +18 -4
- package/examples/js/loaders/MTLLoader.js +10 -3
- package/examples/js/loaders/NRRDLoader.js +1 -1
- package/examples/js/loaders/OBJLoader.js +16 -18
- package/examples/js/loaders/PCDLoader.js +81 -27
- package/examples/js/loaders/PDBLoader.js +11 -11
- package/examples/js/loaders/PLYLoader.js +8 -4
- package/examples/js/loaders/RGBELoader.js +3 -11
- package/examples/js/loaders/RGBMLoader.js +12 -15
- package/examples/js/loaders/STLLoader.js +1 -1
- package/examples/js/loaders/SVGLoader.js +23 -14
- package/examples/js/loaders/TIFFLoader.js +31 -0
- package/examples/js/loaders/VOXLoader.js +3 -4
- package/examples/js/loaders/VRMLLoader.js +33 -24
- package/examples/js/loaders/VTKLoader.js +261 -296
- package/examples/js/loaders/lwo/LWO2Parser.js +12 -11
- package/examples/js/loaders/lwo/LWO3Parser.js +12 -11
- package/examples/js/materials/MeshGouraudMaterial.js +385 -0
- package/examples/js/math/ColorConverter.js +0 -50
- package/examples/js/math/ConvexHull.js +6 -15
- package/examples/js/math/Lut.js +27 -26
- package/examples/js/misc/GPUComputationRenderer.js +23 -0
- package/examples/js/misc/MorphAnimMesh.js +2 -2
- package/examples/js/misc/ProgressiveLightMap.js +1 -1
- package/examples/js/misc/Volume.js +233 -234
- package/examples/js/misc/VolumeSlice.js +108 -106
- package/examples/js/modifiers/EdgeSplitModifier.js +0 -13
- package/examples/js/modifiers/SimplifyModifier.js +2 -19
- package/examples/js/modifiers/TessellateModifier.js +0 -7
- package/examples/js/objects/GroundProjectedEnv.js +193 -0
- package/examples/js/objects/Lensflare.js +4 -4
- package/examples/js/objects/LightningStorm.js +4 -5
- package/examples/js/objects/MarchingCubes.js +6 -11
- package/examples/js/objects/Reflector.js +18 -5
- package/examples/js/objects/ReflectorForSSRPass.js +4 -5
- package/examples/js/objects/Refractor.js +19 -7
- package/examples/js/objects/ShadowMesh.js +6 -3
- package/examples/js/objects/Sky.js +1 -1
- package/examples/js/objects/Water.js +1 -2
- package/examples/js/objects/Water2.js +1 -1
- package/examples/js/postprocessing/AdaptiveToneMappingPass.js +6 -10
- package/examples/js/postprocessing/AfterimagePass.js +2 -6
- package/examples/js/postprocessing/BloomPass.js +50 -19
- package/examples/js/postprocessing/DotScreenPass.js +1 -1
- package/examples/js/postprocessing/EffectComposer.js +1 -6
- package/examples/js/postprocessing/LUTPass.js +2 -2
- package/examples/js/postprocessing/OutlinePass.js +13 -20
- package/examples/js/postprocessing/SAOPass.js +2 -7
- package/examples/js/postprocessing/SSAARenderPass.js +1 -6
- package/examples/js/postprocessing/SSRPass.js +3 -8
- package/examples/js/postprocessing/TAARenderPass.js +4 -4
- package/examples/js/postprocessing/UnrealBloomPass.js +3 -12
- package/examples/js/renderers/CSS2DRenderer.js +22 -21
- package/examples/js/renderers/CSS3DRenderer.js +42 -38
- package/examples/js/renderers/Projector.js +99 -147
- package/examples/js/renderers/SVGRenderer.js +3 -4
- package/examples/js/shaders/BlendShader.js +2 -1
- package/examples/js/shaders/CopyShader.js +4 -3
- package/examples/js/shaders/FXAAShader.js +239 -1069
- package/examples/js/shaders/FreiChenShader.js +1 -1
- package/examples/js/shaders/HorizontalBlurShader.js +1 -1
- package/examples/js/shaders/HorizontalTiltShiftShader.js +1 -1
- package/examples/js/shaders/LuminosityShader.js +1 -1
- package/examples/js/shaders/MMDToonShader.js +6 -2
- package/examples/js/shaders/SSRShader.js +3 -3
- package/examples/js/shaders/ToneMapShader.js +2 -2
- package/examples/js/utils/BufferGeometryUtils.js +282 -22
- package/examples/js/utils/GPUStatsPanel.js +1 -1
- package/examples/js/utils/GeometryUtils.js +2 -18
- package/examples/js/utils/LDrawUtils.js +182 -0
- package/examples/js/utils/PackedPhongMaterial.js +1 -1
- package/examples/js/utils/SceneUtils.js +57 -14
- package/examples/js/utils/SkeletonUtils.js +1 -1
- package/examples/js/utils/UVsDebug.js +23 -33
- package/examples/jsm/animation/CCDIKSolver.js +3 -9
- package/examples/jsm/animation/MMDPhysics.js +4 -23
- package/examples/jsm/capabilities/WebGPU.js +6 -0
- package/examples/jsm/controls/ArcballControls.js +19 -2
- package/examples/jsm/controls/FirstPersonControls.js +0 -7
- package/examples/jsm/controls/FlyControls.js +0 -7
- package/examples/jsm/controls/OrbitControls.js +0 -5
- package/examples/jsm/controls/PointerLockControls.js +4 -9
- package/examples/jsm/controls/TrackballControls.js +1 -7
- package/examples/jsm/controls/TransformControls.js +24 -22
- package/examples/jsm/csm/CSMFrustum.js +1 -1
- package/examples/jsm/csm/CSMShader.js +51 -35
- package/examples/jsm/curves/CurveExtras.js +15 -17
- package/examples/jsm/effects/AnaglyphEffect.js +6 -6
- package/examples/jsm/effects/AsciiEffect.js +9 -22
- package/examples/jsm/effects/OutlineEffect.js +4 -25
- package/examples/jsm/effects/ParallaxBarrierEffect.js +2 -2
- package/examples/jsm/effects/PeppersGhostEffect.js +2 -2
- package/examples/jsm/effects/StereoEffect.js +2 -2
- package/examples/jsm/environments/RoomEnvironment.js +23 -0
- package/examples/jsm/exporters/ColladaExporter.js +35 -19
- package/examples/jsm/exporters/DRACOExporter.js +0 -13
- package/examples/jsm/exporters/EXRExporter.js +507 -0
- package/examples/jsm/exporters/GLTFExporter.js +276 -104
- package/examples/jsm/exporters/KTX2Exporter.js +281 -0
- package/examples/jsm/exporters/OBJExporter.js +11 -36
- package/examples/jsm/exporters/PLYExporter.js +37 -43
- package/examples/jsm/exporters/STLExporter.js +1 -9
- package/examples/jsm/exporters/USDZExporter.js +26 -3
- package/examples/jsm/geometries/ConvexGeometry.js +1 -1
- package/examples/jsm/geometries/DecalGeometry.js +0 -7
- package/examples/jsm/geometries/LightningStrike.js +2 -2
- package/examples/jsm/geometries/ParametricGeometries.js +3 -3
- package/examples/jsm/geometries/ParametricGeometry.js +0 -6
- package/examples/jsm/geometries/TextGeometry.js +13 -13
- package/examples/jsm/helpers/OctreeHelper.js +58 -0
- package/examples/jsm/helpers/VertexNormalsHelper.js +4 -25
- package/examples/jsm/helpers/VertexTangentsHelper.js +3 -15
- package/examples/jsm/helpers/ViewHelper.js +295 -0
- package/examples/jsm/interactive/HTMLMesh.js +268 -36
- package/examples/jsm/interactive/SelectionHelper.js +6 -4
- package/examples/jsm/libs/flow.module.js +947 -183
- package/examples/jsm/libs/ktx-parse.module.js +1 -1
- package/examples/jsm/libs/meshopt_decoder.module.js +97 -32
- package/examples/jsm/libs/mikktspace.module.js +128 -0
- package/examples/jsm/libs/opentype.module.js +14568 -0
- package/examples/jsm/libs/utif.module.js +1579 -0
- package/examples/jsm/libs/zstddec.module.js +1 -0
- package/examples/jsm/lines/Line2.js +2 -2
- package/examples/jsm/lines/LineGeometry.js +11 -19
- package/examples/jsm/lines/LineMaterial.js +3 -3
- package/examples/jsm/lines/LineSegments2.js +210 -145
- package/examples/jsm/lines/LineSegmentsGeometry.js +3 -12
- package/examples/jsm/lines/Wireframe.js +3 -3
- package/examples/jsm/lines/WireframeGeometry2.js +2 -2
- package/examples/jsm/loaders/3DMLoader.js +3 -2
- package/examples/jsm/loaders/3MFLoader.js +21 -17
- package/examples/jsm/loaders/AMFLoader.js +1 -1
- package/examples/jsm/loaders/ColladaLoader.js +41 -12
- package/examples/jsm/loaders/DDSLoader.js +21 -28
- package/examples/jsm/loaders/DRACOLoader.js +2 -28
- package/examples/jsm/loaders/EXRLoader.js +278 -275
- package/examples/jsm/loaders/FBXLoader.js +21 -3
- package/examples/jsm/loaders/FontLoader.js +5 -18
- package/examples/jsm/loaders/GCodeLoader.js +0 -1
- package/examples/jsm/loaders/GLTFLoader.js +314 -101
- package/examples/jsm/loaders/HDRCubeTextureLoader.js +0 -13
- package/examples/jsm/loaders/KMZLoader.js +1 -1
- package/examples/jsm/loaders/KTX2Loader.js +193 -40
- package/examples/jsm/loaders/LDrawLoader.js +641 -495
- package/examples/jsm/loaders/LUT3dlLoader.js +2 -2
- package/examples/jsm/loaders/LUTCubeLoader.js +2 -2
- package/examples/jsm/loaders/LWOLoader.js +5 -3
- package/examples/jsm/loaders/LogLuvLoader.js +2 -2
- package/examples/jsm/loaders/MD2Loader.js +5 -5
- package/examples/jsm/loaders/MMDLoader.js +21 -3
- package/examples/jsm/loaders/MTLLoader.js +11 -4
- package/examples/jsm/loaders/NRRDLoader.js +1 -2
- package/examples/jsm/loaders/OBJLoader.js +17 -21
- package/examples/jsm/loaders/PCDLoader.js +82 -28
- package/examples/jsm/loaders/PDBLoader.js +11 -11
- package/examples/jsm/loaders/PLYLoader.js +13 -5
- package/examples/jsm/loaders/RGBELoader.js +4 -12
- package/examples/jsm/loaders/RGBMLoader.js +14 -11
- package/examples/jsm/loaders/STLLoader.js +1 -1
- package/examples/jsm/loaders/SVGLoader.js +24 -13
- package/examples/jsm/loaders/TIFFLoader.js +36 -0
- package/examples/jsm/loaders/TTFLoader.js +1 -1
- package/examples/jsm/loaders/USDZLoader.js +393 -0
- package/examples/jsm/loaders/VOXLoader.js +5 -5
- package/examples/jsm/loaders/VRMLLoader.js +23 -26
- package/examples/jsm/loaders/VTKLoader.js +257 -285
- package/examples/jsm/loaders/ifc/web-ifc-api.js +9 -8
- package/examples/jsm/loaders/lwo/LWO2Parser.js +10 -12
- package/examples/jsm/loaders/lwo/LWO3Parser.js +10 -12
- package/examples/jsm/materials/MeshGouraudMaterial.js +423 -0
- package/examples/jsm/math/ColorConverter.js +1 -49
- package/examples/jsm/math/ConvexHull.js +6 -15
- package/examples/jsm/math/Lut.js +35 -25
- package/examples/jsm/misc/GPUComputationRenderer.js +43 -0
- package/examples/jsm/misc/MorphAnimMesh.js +2 -2
- package/examples/jsm/misc/ProgressiveLightMap.js +1 -1
- package/examples/jsm/misc/Volume.js +204 -213
- package/examples/jsm/misc/VolumeSlice.js +96 -98
- package/examples/jsm/modifiers/EdgeSplitModifier.js +0 -13
- package/examples/jsm/modifiers/SimplifyModifier.js +2 -19
- package/examples/jsm/modifiers/TessellateModifier.js +0 -7
- package/examples/jsm/node-editor/NodeEditor.js +505 -182
- package/examples/jsm/node-editor/accessors/MatcapUVEditor.js +14 -0
- package/examples/jsm/node-editor/accessors/NormalEditor.js +9 -9
- package/examples/jsm/node-editor/accessors/PositionEditor.js +9 -9
- package/examples/jsm/node-editor/accessors/UVEditor.js +7 -8
- package/examples/jsm/node-editor/core/BaseNode.js +89 -0
- package/examples/jsm/node-editor/core/DataFile.js +59 -0
- package/examples/jsm/node-editor/core/FileEditor.js +20 -0
- package/examples/jsm/node-editor/core/FileURLEditor.js +29 -0
- package/examples/jsm/node-editor/display/BlendEditor.js +10 -9
- package/examples/jsm/node-editor/display/NormalMapEditor.js +49 -0
- package/examples/jsm/node-editor/examples/animate-uv.json +1 -1
- package/examples/jsm/node-editor/examples/fake-top-light.json +1 -1
- package/examples/jsm/node-editor/examples/matcap.json +1 -0
- package/examples/jsm/node-editor/examples/oscillator-color.json +1 -1
- package/examples/jsm/node-editor/examples/rim.json +1 -1
- package/examples/jsm/node-editor/inputs/ColorEditor.js +18 -13
- package/examples/jsm/node-editor/inputs/FloatEditor.js +8 -9
- package/examples/jsm/node-editor/inputs/SliderEditor.js +6 -7
- package/examples/jsm/node-editor/inputs/TextureEditor.js +155 -0
- package/examples/jsm/node-editor/inputs/Vector2Editor.js +9 -9
- package/examples/jsm/node-editor/inputs/Vector3Editor.js +11 -11
- package/examples/jsm/node-editor/inputs/Vector4Editor.js +12 -12
- package/examples/jsm/node-editor/materials/BasicMaterialEditor.js +87 -0
- package/examples/jsm/node-editor/materials/PointsMaterialEditor.js +102 -0
- package/examples/jsm/node-editor/materials/StandardMaterialEditor.js +31 -18
- package/examples/jsm/node-editor/math/AngleEditor.js +40 -0
- package/examples/jsm/node-editor/math/DotEditor.js +8 -9
- package/examples/jsm/node-editor/math/InvertEditor.js +8 -7
- package/examples/jsm/node-editor/math/LimiterEditor.js +28 -14
- package/examples/jsm/node-editor/math/NormalizeEditor.js +9 -7
- package/examples/jsm/node-editor/math/OperatorEditor.js +29 -16
- package/examples/jsm/node-editor/math/PowerEditor.js +20 -10
- package/examples/jsm/node-editor/math/TrigonometryEditor.js +15 -9
- package/examples/jsm/node-editor/procedural/CheckerEditor.js +7 -6
- package/examples/jsm/node-editor/scene/MeshEditor.js +99 -0
- package/examples/jsm/node-editor/scene/Object3DEditor.js +160 -0
- package/examples/jsm/node-editor/scene/PointsEditor.js +99 -0
- package/examples/jsm/node-editor/utils/JoinEditor.js +58 -0
- package/examples/jsm/node-editor/utils/OscillatorEditor.js +9 -8
- package/examples/jsm/node-editor/utils/PreviewEditor.js +166 -0
- package/examples/jsm/node-editor/utils/SplitEditor.js +39 -0
- package/examples/jsm/node-editor/utils/TimerEditor.js +7 -6
- package/examples/jsm/nodes/Nodes.js +313 -94
- package/examples/jsm/nodes/accessors/BufferNode.js +24 -0
- package/examples/jsm/nodes/accessors/CameraNode.js +27 -196
- package/examples/jsm/nodes/accessors/CubeTextureNode.js +107 -0
- package/examples/jsm/nodes/accessors/InstanceNode.js +58 -0
- package/examples/jsm/{renderers/nodes → nodes}/accessors/MaterialNode.js +49 -11
- package/examples/jsm/{renderers/nodes → nodes}/accessors/MaterialReferenceNode.js +0 -0
- package/examples/jsm/{renderers/nodes → nodes}/accessors/ModelNode.js +8 -0
- package/examples/jsm/{renderers/nodes → nodes}/accessors/ModelViewProjectionNode.js +0 -0
- package/examples/jsm/nodes/accessors/NormalNode.js +39 -99
- package/examples/jsm/{renderers/nodes → nodes}/accessors/Object3DNode.js +34 -17
- package/examples/jsm/{renderers/nodes → nodes}/accessors/PointUVNode.js +2 -2
- package/examples/jsm/nodes/accessors/PositionNode.js +41 -110
- package/examples/jsm/nodes/accessors/ReferenceNode.js +65 -0
- package/examples/jsm/nodes/accessors/ReflectVectorNode.js +31 -0
- package/examples/jsm/nodes/accessors/SkinningNode.js +102 -0
- package/examples/jsm/nodes/accessors/StorageBufferNode.js +21 -0
- package/examples/jsm/nodes/accessors/TextureNode.js +100 -0
- package/examples/jsm/nodes/accessors/UVNode.js +17 -43
- package/examples/jsm/nodes/accessors/UserDataNode.js +23 -0
- package/examples/jsm/nodes/core/ArrayUniformNode.js +23 -0
- package/examples/jsm/nodes/core/AttributeNode.js +33 -30
- package/examples/jsm/{renderers/nodes → nodes}/core/BypassNode.js +2 -2
- package/examples/jsm/nodes/core/CodeNode.js +50 -0
- package/examples/jsm/nodes/core/ConstNode.js +10 -106
- package/examples/jsm/{renderers/nodes → nodes}/core/ContextNode.js +17 -3
- package/examples/jsm/nodes/core/ExpressionNode.js +24 -7
- package/examples/jsm/nodes/core/FunctionCallNode.js +33 -59
- package/examples/jsm/nodes/core/FunctionNode.js +43 -216
- package/examples/jsm/nodes/core/InputNode.js +28 -60
- package/examples/jsm/nodes/core/InstanceIndexNode.js +21 -0
- package/examples/jsm/nodes/core/Node.js +230 -94
- package/examples/jsm/{renderers/nodes → nodes}/core/NodeAttribute.js +2 -2
- package/examples/jsm/nodes/core/NodeBuilder.js +388 -560
- package/examples/jsm/{renderers/nodes → nodes}/core/NodeCode.js +0 -0
- package/examples/jsm/nodes/core/NodeFrame.js +30 -23
- package/examples/jsm/{renderers/nodes → nodes}/core/NodeFunction.js +0 -0
- package/examples/jsm/{renderers/nodes → nodes}/core/NodeFunctionInput.js +0 -0
- package/examples/jsm/{renderers/nodes → nodes}/core/NodeKeywords.js +0 -0
- package/examples/jsm/{renderers/nodes → nodes}/core/NodeParser.js +0 -0
- package/examples/jsm/nodes/core/NodeUniform.js +8 -6
- package/examples/jsm/nodes/core/NodeUtils.js +90 -36
- package/examples/jsm/{renderers/nodes → nodes}/core/NodeVar.js +2 -2
- package/examples/jsm/{renderers/nodes/core/NodeVary.js → nodes/core/NodeVarying.js} +4 -4
- package/examples/jsm/{renderers/nodes → nodes}/core/PropertyNode.js +0 -0
- package/examples/jsm/nodes/core/TempNode.js +20 -112
- package/examples/jsm/nodes/core/UniformNode.js +46 -0
- package/examples/jsm/nodes/core/VarNode.js +58 -27
- package/examples/jsm/{renderers/nodes/core/VaryNode.js → nodes/core/VaryingNode.js} +7 -7
- package/examples/jsm/{renderers/nodes → nodes}/core/constants.js +0 -0
- package/examples/jsm/nodes/display/ColorAdjustmentNode.js +94 -0
- package/examples/jsm/{renderers/nodes → nodes}/display/ColorSpaceNode.js +10 -11
- package/examples/jsm/nodes/display/FrontFacingNode.js +21 -0
- package/examples/jsm/nodes/display/NormalMapNode.js +86 -0
- package/examples/jsm/nodes/display/ToneMappingNode.js +51 -0
- package/examples/jsm/nodes/fog/FogNode.js +31 -0
- package/examples/jsm/nodes/fog/FogRangeNode.js +27 -0
- package/examples/jsm/nodes/functions/BSDF/BRDF_GGX.js +33 -0
- package/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.js +9 -0
- package/examples/jsm/nodes/functions/BSDF/DFGApprox.js +27 -0
- package/examples/jsm/nodes/functions/BSDF/D_GGX.js +18 -0
- package/examples/jsm/nodes/functions/BSDF/F_Schlick.js +18 -0
- package/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.js +18 -0
- package/examples/jsm/nodes/functions/PhysicalLightingModel.js +94 -0
- package/examples/jsm/nodes/functions/light/getDistanceAttenuation.js +22 -0
- package/examples/jsm/nodes/functions/material/getGeometryRoughness.js +12 -0
- package/examples/jsm/nodes/functions/material/getRoughness.js +18 -0
- package/examples/jsm/nodes/geometry/RangeNode.js +109 -0
- package/examples/jsm/nodes/gpgpu/ComputeNode.js +65 -0
- package/examples/jsm/nodes/lighting/AONode.js +25 -0
- package/examples/jsm/nodes/lighting/AnalyticLightNode.js +37 -0
- package/examples/jsm/nodes/lighting/EnvironmentNode.js +66 -0
- package/examples/jsm/nodes/lighting/HemisphereLightNode.js +50 -0
- package/examples/jsm/nodes/lighting/LightingContextNode.js +75 -0
- package/examples/jsm/nodes/lighting/LightingNode.js +19 -0
- package/examples/jsm/nodes/lighting/LightsNode.js +120 -0
- package/examples/jsm/nodes/lighting/PunctualLightNode.js +68 -0
- package/examples/jsm/nodes/loaders/NodeLoader.js +107 -0
- package/examples/jsm/nodes/loaders/NodeMaterialLoader.js +73 -0
- package/examples/jsm/nodes/loaders/NodeObjectLoader.js +70 -0
- package/examples/jsm/{renderers/nodes → nodes}/materials/LineBasicNodeMaterial.js +11 -4
- package/examples/jsm/nodes/materials/Materials.js +53 -0
- package/examples/jsm/{renderers/nodes → nodes}/materials/MeshBasicNodeMaterial.js +13 -4
- package/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.js +70 -0
- package/examples/jsm/nodes/materials/MeshStandardNodeMaterial.js +159 -22
- package/examples/jsm/nodes/materials/NodeMaterial.js +128 -113
- package/examples/jsm/{renderers/nodes → nodes}/materials/PointsNodeMaterial.js +13 -4
- package/examples/jsm/nodes/materials/SpriteNodeMaterial.js +95 -16
- package/examples/jsm/nodes/materialx/Disclaimer.md +199 -0
- package/examples/jsm/nodes/materialx/functions/lib/mx_hsv.js +56 -0
- package/examples/jsm/nodes/materialx/functions/lib/mx_noise.js +607 -0
- package/examples/jsm/nodes/math/CondNode.js +26 -95
- package/examples/jsm/nodes/math/MathNode.js +156 -189
- package/examples/jsm/nodes/math/OperatorNode.js +161 -41
- package/examples/jsm/{renderers/nodes → nodes}/parsers/GLSLNodeFunction.js +23 -8
- package/examples/jsm/{renderers/nodes → nodes}/parsers/GLSLNodeParser.js +0 -0
- package/examples/jsm/{renderers/nodes → nodes}/parsers/WGSLNodeFunction.js +20 -5
- package/examples/jsm/{renderers/nodes → nodes}/parsers/WGSLNodeParser.js +0 -0
- package/examples/jsm/nodes/procedural/CheckerNode.js +16 -57
- package/examples/jsm/nodes/shadernode/ShaderNode.js +262 -0
- package/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.js +277 -0
- package/examples/jsm/nodes/shadernode/ShaderNodeElements.js +120 -0
- package/examples/jsm/{renderers/nodes → nodes}/utils/ArrayElementNode.js +3 -3
- package/examples/jsm/nodes/utils/ConvertNode.js +46 -0
- package/examples/jsm/nodes/utils/JoinNode.js +15 -87
- package/examples/jsm/nodes/utils/MatcapUVNode.js +25 -0
- package/examples/jsm/nodes/utils/MaxMipLevelNode.js +33 -0
- package/examples/jsm/{renderers/nodes → nodes}/utils/OscNode.js +18 -2
- package/examples/jsm/nodes/utils/RotateUVNode.js +32 -0
- package/examples/jsm/nodes/utils/SplitNode.js +102 -0
- package/examples/jsm/{renderers/nodes → nodes}/utils/SpriteSheetUVNode.js +3 -3
- package/examples/jsm/nodes/utils/TimerNode.js +30 -65
- package/examples/jsm/objects/GroundProjectedEnv.js +186 -0
- package/examples/jsm/objects/Lensflare.js +2 -2
- package/examples/jsm/objects/LightningStorm.js +4 -4
- package/examples/jsm/objects/MarchingCubes.js +5 -9
- package/examples/jsm/objects/Reflector.js +19 -8
- package/examples/jsm/objects/ReflectorForSSRPass.js +5 -7
- package/examples/jsm/objects/Refractor.js +19 -9
- package/examples/jsm/objects/ShadowMesh.js +10 -4
- package/examples/jsm/objects/Sky.js +2 -2
- package/examples/jsm/objects/Water.js +2 -2
- package/examples/jsm/objects/Water2.js +2 -2
- package/examples/jsm/offscreen/jank.js +5 -5
- package/examples/jsm/offscreen/offscreen.js +1 -1
- package/examples/jsm/offscreen/scene.js +11 -11
- package/examples/jsm/postprocessing/AdaptiveToneMappingPass.js +5 -7
- package/examples/jsm/postprocessing/AfterimagePass.js +0 -10
- package/examples/jsm/postprocessing/BloomPass.js +48 -20
- package/examples/jsm/postprocessing/DotScreenPass.js +1 -1
- package/examples/jsm/postprocessing/EffectComposer.js +1 -9
- package/examples/jsm/postprocessing/LUTPass.js +2 -2
- package/examples/jsm/postprocessing/OutlinePass.js +13 -18
- package/examples/jsm/postprocessing/SAOPass.js +2 -9
- package/examples/jsm/postprocessing/SSAARenderPass.js +1 -4
- package/examples/jsm/postprocessing/SSRPass.js +3 -9
- package/examples/jsm/postprocessing/TAARenderPass.js +4 -4
- package/examples/jsm/postprocessing/UnrealBloomPass.js +3 -8
- package/examples/jsm/renderers/CSS2DRenderer.js +23 -21
- package/examples/jsm/renderers/CSS3DRenderer.js +41 -36
- package/examples/jsm/renderers/Projector.js +103 -152
- package/examples/jsm/renderers/SVGRenderer.js +4 -4
- package/examples/jsm/renderers/webgl/nodes/SlotNode.js +9 -5
- package/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.js +398 -183
- package/examples/jsm/renderers/webgl/nodes/WebGLNodes.js +19 -4
- package/examples/jsm/renderers/webgpu/WebGPUAttributes.js +4 -4
- package/examples/jsm/renderers/webgpu/WebGPUBackground.js +55 -13
- package/examples/jsm/renderers/webgpu/WebGPUBindings.js +8 -7
- package/examples/jsm/renderers/webgpu/WebGPUBuffer.js +43 -0
- package/examples/jsm/renderers/webgpu/WebGPUComputePipelines.js +20 -7
- package/examples/jsm/renderers/webgpu/WebGPUGeometries.js +6 -0
- package/examples/jsm/renderers/webgpu/WebGPUInfo.js +1 -1
- package/examples/jsm/renderers/webgpu/WebGPUObjects.js +1 -7
- package/examples/jsm/renderers/webgpu/WebGPURenderPipeline.js +37 -39
- package/examples/jsm/renderers/webgpu/WebGPURenderPipelines.js +18 -15
- package/examples/jsm/renderers/webgpu/WebGPURenderStates.js +66 -0
- package/examples/jsm/renderers/webgpu/WebGPURenderer.js +103 -95
- package/examples/jsm/renderers/webgpu/WebGPUSampledTexture.js +14 -14
- package/examples/jsm/renderers/webgpu/WebGPUSampler.js +2 -2
- package/examples/jsm/renderers/webgpu/WebGPUStorageBuffer.js +5 -8
- package/examples/jsm/renderers/webgpu/WebGPUTextureUtils.js +25 -20
- package/examples/jsm/renderers/webgpu/WebGPUTextures.js +37 -18
- package/examples/jsm/renderers/webgpu/WebGPUUniform.js +14 -14
- package/examples/jsm/renderers/webgpu/WebGPUUniformBuffer.js +5 -32
- package/examples/jsm/renderers/webgpu/WebGPUUniformsGroup.js +2 -2
- package/examples/jsm/renderers/webgpu/WebGPUUtils.js +81 -0
- package/examples/jsm/renderers/webgpu/constants.js +3 -2
- package/examples/jsm/renderers/webgpu/nodes/WebGPUNodeBuilder.js +287 -300
- package/examples/jsm/renderers/webgpu/nodes/WebGPUNodeSampledTexture.js +20 -2
- package/examples/jsm/renderers/webgpu/nodes/WebGPUNodes.js +24 -14
- package/examples/jsm/shaders/BlendShader.js +2 -1
- package/examples/jsm/shaders/CopyShader.js +4 -3
- package/examples/jsm/shaders/FXAAShader.js +219 -1051
- package/examples/jsm/shaders/FreiChenShader.js +1 -1
- package/examples/jsm/shaders/HorizontalBlurShader.js +1 -1
- package/examples/jsm/shaders/HorizontalTiltShiftShader.js +1 -1
- package/examples/jsm/shaders/LuminosityShader.js +1 -1
- package/examples/jsm/shaders/MMDToonShader.js +2 -2
- package/examples/jsm/shaders/SSRShader.js +3 -3
- package/examples/jsm/shaders/ToneMapShader.js +2 -2
- package/examples/jsm/utils/BufferGeometryUtils.js +293 -22
- package/examples/jsm/utils/GPUStatsPanel.js +1 -1
- package/examples/jsm/utils/GeometryUtils.js +17 -25
- package/examples/jsm/utils/LDrawUtils.js +24 -17
- package/examples/jsm/utils/PackedPhongMaterial.js +0 -1
- package/examples/jsm/utils/SceneUtils.js +73 -19
- package/examples/jsm/utils/SkeletonUtils.js +1 -1
- package/examples/jsm/utils/UVsDebug.js +23 -32
- package/examples/jsm/webxr/ARButton.js +14 -4
- package/examples/jsm/webxr/OculusHandPointerModel.js +9 -4
- package/examples/jsm/webxr/Text2D.js +1 -1
- package/examples/jsm/webxr/VRButton.js +16 -8
- package/examples/jsm/webxr/XRHandMeshModel.js +3 -7
- package/examples/jsm/webxr/XRHandModelFactory.js +3 -0
- package/package.json +57 -28
- package/src/Three.Legacy.js +164 -1809
- package/src/Three.js +9 -5
- package/src/animation/AnimationAction.js +6 -5
- package/src/animation/AnimationClip.js +2 -2
- package/src/animation/AnimationMixer.js +5 -3
- package/src/animation/AnimationObjectGroup.js +2 -2
- package/src/animation/AnimationUtils.js +204 -199
- package/src/animation/KeyframeTrack.js +1 -1
- package/src/animation/PropertyBinding.js +32 -23
- package/src/audio/PositionalAudio.js +8 -0
- package/src/cameras/ArrayCamera.js +2 -3
- package/src/cameras/Camera.js +2 -2
- package/src/cameras/CubeCamera.js +6 -8
- package/src/cameras/OrthographicCamera.js +2 -2
- package/src/cameras/PerspectiveCamera.js +2 -2
- package/src/constants.js +7 -6
- package/src/core/BufferAttribute.js +88 -123
- package/src/core/BufferGeometry.js +9 -47
- package/src/core/GLBufferAttribute.js +2 -2
- package/src/core/InstancedBufferAttribute.js +2 -12
- package/src/core/InstancedBufferGeometry.js +2 -2
- package/src/core/InstancedInterleavedBuffer.js +2 -2
- package/src/core/InterleavedBuffer.js +3 -3
- package/src/core/InterleavedBufferAttribute.js +61 -18
- package/src/core/Object3D.js +28 -8
- package/src/core/Raycaster.js +2 -2
- package/src/core/Uniform.js +0 -7
- package/src/core/UniformsGroup.js +92 -0
- package/src/extras/DataUtils.js +144 -41
- package/src/extras/Earcut.js +2 -2
- package/src/extras/PMREMGenerator.js +132 -104
- package/src/extras/core/CurvePath.js +3 -3
- package/src/extras/core/Path.js +1 -0
- package/src/extras/core/ShapePath.js +6 -10
- package/src/extras/curves/ArcCurve.js +2 -2
- package/src/extras/curves/CatmullRomCurve3.js +6 -4
- package/src/extras/curves/CubicBezierCurve.js +2 -2
- package/src/extras/curves/CubicBezierCurve3.js +2 -2
- package/src/extras/curves/EllipseCurve.js +2 -2
- package/src/extras/curves/LineCurve.js +2 -2
- package/src/extras/curves/LineCurve3.js +2 -1
- package/src/extras/curves/QuadraticBezierCurve.js +2 -2
- package/src/extras/curves/QuadraticBezierCurve3.js +2 -2
- package/src/extras/curves/SplineCurve.js +2 -2
- package/src/geometries/BoxGeometry.js +1 -1
- package/src/geometries/CapsuleGeometry.js +33 -0
- package/src/geometries/CircleGeometry.js +1 -1
- package/src/geometries/ConeGeometry.js +1 -1
- package/src/geometries/CylinderGeometry.js +2 -1
- package/src/geometries/DodecahedronGeometry.js +1 -1
- package/src/geometries/EdgesGeometry.js +5 -4
- package/src/geometries/ExtrudeGeometry.js +4 -11
- package/src/geometries/Geometries.js +1 -0
- package/src/geometries/IcosahedronGeometry.js +1 -1
- package/src/geometries/LatheGeometry.js +3 -3
- package/src/geometries/OctahedronGeometry.js +1 -1
- package/src/geometries/PlaneGeometry.js +2 -1
- package/src/geometries/PolyhedronGeometry.js +1 -1
- package/src/geometries/RingGeometry.js +1 -1
- package/src/geometries/ShapeGeometry.js +2 -1
- package/src/geometries/SphereGeometry.js +2 -1
- package/src/geometries/TetrahedronGeometry.js +1 -1
- package/src/geometries/TorusGeometry.js +2 -1
- package/src/geometries/TorusKnotGeometry.js +4 -3
- package/src/geometries/TubeGeometry.js +2 -1
- package/src/geometries/WireframeGeometry.js +4 -2
- package/src/helpers/BoxHelper.js +2 -2
- package/src/helpers/CameraHelper.js +97 -38
- package/src/helpers/DirectionalLightHelper.js +1 -0
- package/src/helpers/HemisphereLightHelper.js +1 -0
- package/src/helpers/PlaneHelper.js +6 -9
- package/src/helpers/PointLightHelper.js +1 -1
- package/src/helpers/PolarGridHelper.js +18 -14
- package/src/helpers/SkeletonHelper.js +3 -2
- package/src/helpers/SpotLightHelper.js +1 -0
- package/src/lights/AmbientLight.js +2 -2
- package/src/lights/AmbientLightProbe.js +2 -2
- package/src/lights/DirectionalLight.js +2 -2
- package/src/lights/DirectionalLightShadow.js +2 -2
- package/src/lights/HemisphereLight.js +4 -4
- package/src/lights/HemisphereLightProbe.js +2 -2
- package/src/lights/Light.js +4 -4
- package/src/lights/LightProbe.js +2 -2
- package/src/lights/PointLight.js +4 -4
- package/src/lights/PointLightShadow.js +2 -2
- package/src/lights/RectAreaLight.js +2 -2
- package/src/lights/SpotLight.js +6 -4
- package/src/lights/SpotLightShadow.js +2 -2
- package/src/loaders/FileLoader.js +35 -5
- package/src/loaders/ImageBitmapLoader.js +2 -2
- package/src/loaders/ImageLoader.js +1 -1
- package/src/loaders/LoaderUtils.js +1 -1
- package/src/loaders/LoadingManager.js +1 -1
- package/src/loaders/MaterialLoader.js +55 -8
- package/src/loaders/ObjectLoader.js +27 -66
- package/src/materials/LineBasicMaterial.js +6 -13
- package/src/materials/LineDashedMaterial.js +2 -15
- package/src/materials/Material.js +26 -24
- package/src/materials/Materials.js +39 -18
- package/src/materials/MeshBasicMaterial.js +6 -31
- package/src/materials/MeshDepthMaterial.js +2 -22
- package/src/materials/MeshDistanceMaterial.js +2 -22
- package/src/materials/MeshLambertMaterial.js +34 -35
- package/src/materials/MeshMatcapMaterial.js +6 -28
- package/src/materials/MeshNormalMaterial.js +2 -26
- package/src/materials/MeshPhongMaterial.js +6 -48
- package/src/materials/MeshPhysicalMaterial.js +32 -35
- package/src/materials/MeshStandardMaterial.js +6 -54
- package/src/materials/MeshToonMaterial.js +6 -38
- package/src/materials/PointsMaterial.js +6 -15
- package/src/materials/RawShaderMaterial.js +2 -2
- package/src/materials/ShaderMaterial.js +6 -24
- package/src/materials/ShadowMaterial.js +6 -8
- package/src/materials/SpriteMaterial.js +6 -12
- package/src/math/Box2.js +2 -2
- package/src/math/Box3.js +29 -15
- package/src/math/Color.js +87 -48
- package/src/math/ColorManagement.js +74 -0
- package/src/math/Euler.js +16 -14
- package/src/math/Interpolant.js +4 -9
- package/src/math/MathUtils.js +77 -14
- package/src/math/Matrix3.js +2 -8
- package/src/math/Matrix4.js +3 -28
- package/src/math/Plane.js +2 -2
- package/src/math/Quaternion.js +12 -23
- package/src/math/Spherical.js +1 -1
- package/src/math/SphericalHarmonics3.js +2 -2
- package/src/math/Vector2.js +5 -25
- package/src/math/Vector3.js +17 -47
- package/src/math/Vector4.js +5 -25
- package/src/math/interpolants/DiscreteInterpolant.js +1 -1
- package/src/objects/Bone.js +2 -2
- package/src/objects/Group.js +2 -2
- package/src/objects/InstancedMesh.js +4 -4
- package/src/objects/Line.js +76 -107
- package/src/objects/LineLoop.js +2 -2
- package/src/objects/LineSegments.js +15 -23
- package/src/objects/Mesh.js +82 -104
- package/src/objects/Points.js +32 -54
- package/src/objects/SkinnedMesh.js +5 -8
- package/src/objects/Sprite.js +4 -4
- package/src/renderers/WebGL3DRenderTarget.js +22 -0
- package/src/renderers/WebGLArrayRenderTarget.js +22 -0
- package/src/renderers/WebGLCubeRenderTarget.js +7 -14
- package/src/renderers/WebGLMultipleRenderTargets.js +8 -5
- package/src/renderers/WebGLRenderTarget.js +19 -18
- package/src/renderers/WebGLRenderer.js +195 -74
- package/src/renderers/shaders/ShaderChunk/bsdfs.glsl.js +46 -0
- package/src/renderers/shaders/ShaderChunk/bumpmap_pars_fragment.glsl.js +3 -5
- package/src/renderers/shaders/ShaderChunk/common.glsl.js +7 -5
- package/src/renderers/shaders/ShaderChunk/cube_uv_reflection_fragment.glsl.js +35 -36
- package/src/renderers/shaders/ShaderChunk/dithering_pars_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/envmap_pars_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/envmap_pars_vertex.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/envmap_physical_pars_fragment.glsl.js +3 -19
- package/src/renderers/shaders/ShaderChunk/gradientmap_pars_fragment.glsl.js +2 -1
- package/src/renderers/shaders/ShaderChunk/iridescence_fragment.glsl.js +121 -0
- package/src/renderers/shaders/ShaderChunk/iridescence_pars_fragment.glsl.js +14 -0
- package/src/renderers/shaders/ShaderChunk/lightmap_fragment.glsl.js +0 -6
- package/src/renderers/shaders/ShaderChunk/lights_fragment_begin.glsl.js +48 -1
- package/src/renderers/shaders/ShaderChunk/lights_fragment_maps.glsl.js +0 -6
- package/src/renderers/shaders/ShaderChunk/lights_lambert_fragment.glsl.js +5 -0
- package/src/renderers/shaders/ShaderChunk/lights_lambert_pars_fragment.glsl.js +30 -0
- package/src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js +26 -1
- package/src/renderers/shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js +56 -6
- package/src/renderers/shaders/ShaderChunk/morphcolor_vertex.glsl.js +24 -0
- package/src/renderers/shaders/ShaderChunk/morphnormal_vertex.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/morphtarget_pars_vertex.glsl.js +7 -7
- package/src/renderers/shaders/ShaderChunk/morphtarget_vertex.glsl.js +1 -9
- package/src/renderers/shaders/ShaderChunk/normalmap_pars_fragment.glsl.js +2 -4
- package/src/renderers/shaders/ShaderChunk/output_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js +18 -7
- package/src/renderers/shaders/ShaderChunk/shadowmap_pars_vertex.glsl.js +8 -3
- package/src/renderers/shaders/ShaderChunk/shadowmap_vertex.glsl.js +9 -6
- package/src/renderers/shaders/ShaderChunk/shadowmask_pars_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/skinning_pars_vertex.glsl.js +16 -31
- package/src/renderers/shaders/ShaderChunk/transmission_fragment.glsl.js +14 -10
- package/src/renderers/shaders/ShaderChunk/transmission_pars_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/worldpos_vertex.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk.js +10 -2
- package/src/renderers/shaders/ShaderLib/background.glsl.js +8 -0
- package/src/renderers/shaders/ShaderLib/linedashed.glsl.js +1 -0
- package/src/renderers/shaders/ShaderLib/meshbasic.glsl.js +3 -3
- package/src/renderers/shaders/ShaderLib/meshlambert.glsl.js +23 -50
- package/src/renderers/shaders/ShaderLib/meshmatcap.glsl.js +1 -0
- package/src/renderers/shaders/ShaderLib/meshnormal.glsl.js +6 -0
- package/src/renderers/shaders/ShaderLib/meshphong.glsl.js +1 -1
- package/src/renderers/shaders/ShaderLib/meshphysical.glsl.js +10 -0
- package/src/renderers/shaders/ShaderLib/meshtoon.glsl.js +1 -0
- package/src/renderers/shaders/ShaderLib/points.glsl.js +1 -0
- package/src/renderers/shaders/ShaderLib.js +37 -31
- package/src/renderers/shaders/UniformsLib.js +14 -13
- package/src/renderers/shaders/UniformsUtils.js +14 -0
- package/src/renderers/webgl/WebGLAttributes.js +6 -6
- package/src/renderers/webgl/WebGLBackground.js +7 -4
- package/src/renderers/webgl/WebGLBindingStates.js +57 -29
- package/src/renderers/webgl/WebGLGeometries.js +2 -2
- package/src/renderers/webgl/WebGLLights.js +37 -14
- package/src/renderers/webgl/WebGLMaterials.js +72 -187
- package/src/renderers/webgl/WebGLMorphtargets.js +43 -39
- package/src/renderers/webgl/WebGLProgram.js +63 -30
- package/src/renderers/webgl/WebGLPrograms.js +97 -104
- package/src/renderers/webgl/WebGLRenderLists.js +5 -4
- package/src/renderers/webgl/WebGLRenderStates.js +5 -4
- package/src/renderers/webgl/WebGLShaderCache.js +12 -8
- package/src/renderers/webgl/WebGLShadowMap.js +13 -20
- package/src/renderers/webgl/WebGLState.js +49 -2
- package/src/renderers/webgl/WebGLTextures.js +576 -386
- package/src/renderers/webgl/WebGLUniforms.js +81 -82
- package/src/renderers/webgl/WebGLUniformsGroups.js +372 -0
- package/src/renderers/webgl/WebGLUtils.js +14 -3
- package/src/renderers/webvr/WebVRManager.js +42 -9
- package/src/renderers/webvr/WebVRUtils.js +1 -1
- package/src/renderers/webxr/WebXRController.js +45 -37
- package/src/renderers/webxr/WebXRManager.js +110 -68
- package/src/scenes/Fog.js +2 -2
- package/src/scenes/FogExp2.js +2 -2
- package/src/scenes/Scene.js +18 -5
- package/src/textures/CanvasTexture.js +2 -2
- package/src/textures/CompressedTexture.js +2 -2
- package/src/textures/CubeTexture.js +2 -2
- package/src/textures/{DataTexture3D.js → Data3DTexture.js} +4 -4
- package/src/textures/{DataTexture2DArray.js → DataArrayTexture.js} +4 -4
- package/src/textures/DataTexture.js +2 -5
- package/src/textures/DepthTexture.js +5 -5
- package/src/textures/FramebufferTexture.js +2 -2
- package/src/textures/Source.js +123 -0
- package/src/textures/Texture.js +27 -97
- package/src/textures/VideoTexture.js +2 -2
- package/src/utils.js +15 -1
- package/examples/js/controls/experimental/CameraControls.js +0 -1044
- package/examples/js/csm/Frustum.js +0 -133
- package/examples/js/deprecated/Geometry.js +0 -1656
- package/examples/js/loaders/KTX2Loader.js +0 -566
- package/examples/js/loaders/VRMLoader.js +0 -72
- package/examples/js/objects/ReflectorRTT.js +0 -16
- package/examples/js/postprocessing/SSRrPass.js +0 -494
- package/examples/js/shaders/SSRrShader.js +0 -336
- package/examples/jsm/controls/experimental/CameraControls.js +0 -1248
- package/examples/jsm/deprecated/Geometry.js +0 -1869
- package/examples/jsm/libs/opentype.module.min.js +0 -119
- package/examples/jsm/loaders/NodeMaterialLoader.js +0 -263
- package/examples/jsm/loaders/VRMLoader.js +0 -78
- package/examples/jsm/nodes/accessors/ColorsNode.js +0 -56
- package/examples/jsm/nodes/accessors/LightNode.js +0 -60
- package/examples/jsm/nodes/accessors/ReflectNode.js +0 -157
- package/examples/jsm/nodes/accessors/ResolutionNode.js +0 -64
- package/examples/jsm/nodes/accessors/ScreenUVNode.js +0 -64
- package/examples/jsm/nodes/core/NodeLib.js +0 -64
- package/examples/jsm/nodes/core/StructNode.js +0 -106
- package/examples/jsm/nodes/effects/BlurNode.js +0 -171
- package/examples/jsm/nodes/effects/ColorAdjustmentNode.js +0 -140
- package/examples/jsm/nodes/effects/LuminanceNode.js +0 -75
- package/examples/jsm/nodes/inputs/BoolNode.js +0 -51
- package/examples/jsm/nodes/inputs/ColorNode.js +0 -58
- package/examples/jsm/nodes/inputs/CubeTextureNode.js +0 -108
- package/examples/jsm/nodes/inputs/FloatNode.js +0 -51
- package/examples/jsm/nodes/inputs/IntNode.js +0 -51
- package/examples/jsm/nodes/inputs/Matrix3Node.js +0 -63
- package/examples/jsm/nodes/inputs/Matrix4Node.js +0 -63
- package/examples/jsm/nodes/inputs/PropertyNode.js +0 -47
- package/examples/jsm/nodes/inputs/RTTNode.js +0 -157
- package/examples/jsm/nodes/inputs/ReflectorNode.js +0 -90
- package/examples/jsm/nodes/inputs/ScreenNode.js +0 -28
- package/examples/jsm/nodes/inputs/TextureNode.js +0 -116
- package/examples/jsm/nodes/inputs/Vector2Node.js +0 -57
- package/examples/jsm/nodes/inputs/Vector3Node.js +0 -58
- package/examples/jsm/nodes/inputs/Vector4Node.js +0 -59
- package/examples/jsm/nodes/materials/BasicNodeMaterial.js +0 -26
- package/examples/jsm/nodes/materials/PhongNodeMaterial.js +0 -36
- package/examples/jsm/nodes/materials/StandardNodeMaterial.js +0 -40
- package/examples/jsm/nodes/materials/nodes/BasicNode.js +0 -154
- package/examples/jsm/nodes/materials/nodes/MeshStandardNode.js +0 -116
- package/examples/jsm/nodes/materials/nodes/PhongNode.js +0 -409
- package/examples/jsm/nodes/materials/nodes/RawNode.js +0 -62
- package/examples/jsm/nodes/materials/nodes/SpriteNode.js +0 -236
- package/examples/jsm/nodes/materials/nodes/StandardNode.js +0 -609
- package/examples/jsm/nodes/misc/BumpMapNode.js +0 -163
- package/examples/jsm/nodes/misc/NormalMapNode.js +0 -138
- package/examples/jsm/nodes/misc/TextureCubeNode.js +0 -86
- package/examples/jsm/nodes/misc/TextureCubeUVNode.js +0 -280
- package/examples/jsm/nodes/postprocessing/NodePass.js +0 -93
- package/examples/jsm/nodes/postprocessing/NodePostProcessing.js +0 -148
- package/examples/jsm/nodes/procedural/Fractal3DNode.js +0 -104
- package/examples/jsm/nodes/procedural/Noise2DNode.js +0 -149
- package/examples/jsm/nodes/procedural/Noise3DNode.js +0 -141
- package/examples/jsm/nodes/utils/BypassNode.js +0 -85
- package/examples/jsm/nodes/utils/ColorSpaceNode.js +0 -145
- package/examples/jsm/nodes/utils/MaxMIPLevelNode.js +0 -56
- package/examples/jsm/nodes/utils/RemapNode.js +0 -155
- package/examples/jsm/nodes/utils/SpecularMIPLevelNode.js +0 -101
- package/examples/jsm/nodes/utils/SubSlotNode.js +0 -77
- package/examples/jsm/nodes/utils/SwitchNode.js +0 -103
- package/examples/jsm/nodes/utils/UVTransformNode.js +0 -66
- package/examples/jsm/nodes/utils/VelocityNode.js +0 -170
- package/examples/jsm/objects/ReflectorRTT.js +0 -15
- package/examples/jsm/package.json +0 -3
- package/examples/jsm/postprocessing/SSRrPass.js +0 -579
- package/examples/jsm/renderers/nodes/Nodes.js +0 -166
- package/examples/jsm/renderers/nodes/ShaderNode.js +0 -373
- package/examples/jsm/renderers/nodes/accessors/CameraNode.js +0 -68
- package/examples/jsm/renderers/nodes/accessors/NormalNode.js +0 -63
- package/examples/jsm/renderers/nodes/accessors/PositionNode.js +0 -67
- package/examples/jsm/renderers/nodes/accessors/ReferenceNode.js +0 -91
- package/examples/jsm/renderers/nodes/accessors/SkinningNode.js +0 -107
- package/examples/jsm/renderers/nodes/accessors/UVNode.js +0 -25
- package/examples/jsm/renderers/nodes/core/ArrayInputNode.js +0 -23
- package/examples/jsm/renderers/nodes/core/AttributeNode.js +0 -54
- package/examples/jsm/renderers/nodes/core/CodeNode.js +0 -78
- package/examples/jsm/renderers/nodes/core/ExpressionNode.js +0 -32
- package/examples/jsm/renderers/nodes/core/FunctionCallNode.js +0 -67
- package/examples/jsm/renderers/nodes/core/FunctionNode.js +0 -87
- package/examples/jsm/renderers/nodes/core/InputNode.js +0 -66
- package/examples/jsm/renderers/nodes/core/Node.js +0 -104
- package/examples/jsm/renderers/nodes/core/NodeBuilder.js +0 -633
- package/examples/jsm/renderers/nodes/core/NodeFrame.js +0 -59
- package/examples/jsm/renderers/nodes/core/NodeUniform.js +0 -28
- package/examples/jsm/renderers/nodes/core/TempNode.js +0 -43
- package/examples/jsm/renderers/nodes/core/VarNode.js +0 -51
- package/examples/jsm/renderers/nodes/display/NormalMapNode.js +0 -87
- package/examples/jsm/renderers/nodes/functions/BSDFs.js +0 -122
- package/examples/jsm/renderers/nodes/functions/PhysicalMaterialFunctions.js +0 -27
- package/examples/jsm/renderers/nodes/inputs/BufferNode.js +0 -25
- package/examples/jsm/renderers/nodes/inputs/ColorNode.js +0 -18
- package/examples/jsm/renderers/nodes/inputs/FloatNode.js +0 -17
- package/examples/jsm/renderers/nodes/inputs/IntNode.js +0 -17
- package/examples/jsm/renderers/nodes/inputs/Matrix3Node.js +0 -18
- package/examples/jsm/renderers/nodes/inputs/Matrix4Node.js +0 -18
- package/examples/jsm/renderers/nodes/inputs/TextureNode.js +0 -74
- package/examples/jsm/renderers/nodes/inputs/Vector2Node.js +0 -18
- package/examples/jsm/renderers/nodes/inputs/Vector3Node.js +0 -18
- package/examples/jsm/renderers/nodes/inputs/Vector4Node.js +0 -18
- package/examples/jsm/renderers/nodes/lights/LightContextNode.js +0 -59
- package/examples/jsm/renderers/nodes/lights/LightNode.js +0 -79
- package/examples/jsm/renderers/nodes/lights/LightsNode.js +0 -44
- package/examples/jsm/renderers/nodes/materials/Materials.js +0 -11
- package/examples/jsm/renderers/nodes/materials/MeshStandardNodeMaterial.js +0 -63
- package/examples/jsm/renderers/nodes/math/CondNode.js +0 -60
- package/examples/jsm/renderers/nodes/math/MathNode.js +0 -242
- package/examples/jsm/renderers/nodes/math/OperatorNode.js +0 -174
- package/examples/jsm/renderers/nodes/procedural/CheckerNode.js +0 -36
- package/examples/jsm/renderers/nodes/utils/ConvertNode.js +0 -33
- package/examples/jsm/renderers/nodes/utils/JoinNode.js +0 -42
- package/examples/jsm/renderers/nodes/utils/SplitNode.js +0 -55
- package/examples/jsm/renderers/nodes/utils/TimerNode.js +0 -47
- package/examples/jsm/renderers/webgl/nodes/WebGLPhysicalContextNode.js +0 -45
- package/examples/jsm/renderers/webgpu/nodes/WebGPUNodeUniformsGroup.js +0 -20
- package/examples/jsm/shaders/SSRrShader.js +0 -307
- package/src/renderers/WebGLMultisampleRenderTarget.js +0 -33
- package/src/renderers/shaders/ShaderChunk/lights_lambert_vertex.glsl.js +0 -122
package/src/Three.Legacy.js
CHANGED
|
@@ -1,1965 +1,320 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
TrianglesDrawMode
|
|
11
|
-
} from './constants.js';
|
|
12
|
-
import {
|
|
13
|
-
Float64BufferAttribute,
|
|
14
|
-
Float32BufferAttribute,
|
|
15
|
-
Uint32BufferAttribute,
|
|
16
|
-
Int32BufferAttribute,
|
|
17
|
-
Uint16BufferAttribute,
|
|
18
|
-
Int16BufferAttribute,
|
|
19
|
-
Uint8ClampedBufferAttribute,
|
|
20
|
-
Uint8BufferAttribute,
|
|
21
|
-
Int8BufferAttribute,
|
|
22
|
-
BufferAttribute
|
|
23
|
-
} from './core/BufferAttribute.js';
|
|
24
|
-
import { BufferGeometry } from './core/BufferGeometry.js';
|
|
25
|
-
import { InterleavedBuffer } from './core/InterleavedBuffer.js';
|
|
26
|
-
import { Object3D } from './core/Object3D.js';
|
|
27
|
-
import { Uniform } from './core/Uniform.js';
|
|
28
|
-
import { Curve } from './extras/core/Curve.js';
|
|
29
|
-
import { Path } from './extras/core/Path.js';
|
|
30
|
-
import { AxesHelper } from './helpers/AxesHelper.js';
|
|
31
|
-
import { BoxHelper } from './helpers/BoxHelper.js';
|
|
32
|
-
import { GridHelper } from './helpers/GridHelper.js';
|
|
33
|
-
import { SkeletonHelper } from './helpers/SkeletonHelper.js';
|
|
34
|
-
import { EdgesGeometry } from './geometries/EdgesGeometry.js';
|
|
1
|
+
import { WebGLRenderTarget } from './renderers/WebGLRenderTarget.js';
|
|
2
|
+
import { DataArrayTexture } from './textures/DataArrayTexture.js';
|
|
3
|
+
import { Data3DTexture } from './textures/Data3DTexture.js';
|
|
4
|
+
import { BoxGeometry } from './geometries/BoxGeometry.js';
|
|
5
|
+
import { CapsuleGeometry } from './geometries/CapsuleGeometry.js';
|
|
6
|
+
import { CircleGeometry } from './geometries/CircleGeometry.js';
|
|
7
|
+
import { ConeGeometry } from './geometries/ConeGeometry.js';
|
|
8
|
+
import { CylinderGeometry } from './geometries/CylinderGeometry.js';
|
|
9
|
+
import { DodecahedronGeometry } from './geometries/DodecahedronGeometry.js';
|
|
35
10
|
import { ExtrudeGeometry } from './geometries/ExtrudeGeometry.js';
|
|
11
|
+
import { IcosahedronGeometry } from './geometries/IcosahedronGeometry.js';
|
|
12
|
+
import { LatheGeometry } from './geometries/LatheGeometry.js';
|
|
13
|
+
import { OctahedronGeometry } from './geometries/OctahedronGeometry.js';
|
|
14
|
+
import { PlaneGeometry } from './geometries/PlaneGeometry.js';
|
|
15
|
+
import { PolyhedronGeometry } from './geometries/PolyhedronGeometry.js';
|
|
16
|
+
import { RingGeometry } from './geometries/RingGeometry.js';
|
|
36
17
|
import { ShapeGeometry } from './geometries/ShapeGeometry.js';
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import { AudioLoader } from './loaders/AudioLoader.js';
|
|
43
|
-
import { CubeTextureLoader } from './loaders/CubeTextureLoader.js';
|
|
44
|
-
import { DataTextureLoader } from './loaders/DataTextureLoader.js';
|
|
45
|
-
import { TextureLoader } from './loaders/TextureLoader.js';
|
|
46
|
-
import { Material } from './materials/Material.js';
|
|
47
|
-
import { LineBasicMaterial } from './materials/LineBasicMaterial.js';
|
|
48
|
-
import { PointsMaterial } from './materials/PointsMaterial.js';
|
|
49
|
-
import { ShaderMaterial } from './materials/ShaderMaterial.js';
|
|
50
|
-
import { Box2 } from './math/Box2.js';
|
|
51
|
-
import { Box3 } from './math/Box3.js';
|
|
52
|
-
import { Sphere } from './math/Sphere.js';
|
|
53
|
-
import { Color } from './math/Color.js';
|
|
54
|
-
import { Frustum } from './math/Frustum.js';
|
|
55
|
-
import { Line3 } from './math/Line3.js';
|
|
56
|
-
import * as MathUtils from './math/MathUtils.js';
|
|
57
|
-
import { Matrix3 } from './math/Matrix3.js';
|
|
58
|
-
import { Matrix4 } from './math/Matrix4.js';
|
|
59
|
-
import { Plane } from './math/Plane.js';
|
|
60
|
-
import { Quaternion } from './math/Quaternion.js';
|
|
61
|
-
import { Ray } from './math/Ray.js';
|
|
62
|
-
import { Triangle } from './math/Triangle.js';
|
|
63
|
-
import { Vector2 } from './math/Vector2.js';
|
|
64
|
-
import { Vector3 } from './math/Vector3.js';
|
|
65
|
-
import { Vector4 } from './math/Vector4.js';
|
|
66
|
-
import { Mesh } from './objects/Mesh.js';
|
|
67
|
-
import { LineSegments } from './objects/LineSegments.js';
|
|
68
|
-
import { Points } from './objects/Points.js';
|
|
69
|
-
import { Sprite } from './objects/Sprite.js';
|
|
70
|
-
import { SkinnedMesh } from './objects/SkinnedMesh.js';
|
|
71
|
-
import { WebGLRenderer } from './renderers/WebGLRenderer.js';
|
|
72
|
-
import { WebGLRenderTarget } from './renderers/WebGLRenderTarget.js';
|
|
73
|
-
import { WebGLCubeRenderTarget } from './renderers/WebGLCubeRenderTarget.js';
|
|
74
|
-
import { WebGLShadowMap } from './renderers/webgl/WebGLShadowMap.js';
|
|
75
|
-
import { ImageUtils } from './extras/ImageUtils.js';
|
|
76
|
-
import { Shape } from './extras/core/Shape.js';
|
|
77
|
-
import { CubeCamera } from './cameras/CubeCamera.js';
|
|
78
|
-
import { Scene } from './scenes/Scene.js';
|
|
18
|
+
import { SphereGeometry } from './geometries/SphereGeometry.js';
|
|
19
|
+
import { TetrahedronGeometry } from './geometries/TetrahedronGeometry.js';
|
|
20
|
+
import { TorusGeometry } from './geometries/TorusGeometry.js';
|
|
21
|
+
import { TorusKnotGeometry } from './geometries/TorusKnotGeometry.js';
|
|
22
|
+
import { TubeGeometry } from './geometries/TubeGeometry.js';
|
|
79
23
|
|
|
80
|
-
|
|
24
|
+
// r134, d65e0af06644fe5a84a6fc0e372f4318f95a04c0
|
|
81
25
|
|
|
82
|
-
export
|
|
83
|
-
export const LinePieces = 1;
|
|
84
|
-
export const NoColors = 0;
|
|
85
|
-
export const FaceColors = 1;
|
|
86
|
-
export const VertexColors = 2;
|
|
87
|
-
|
|
88
|
-
export function MeshFaceMaterial( materials ) {
|
|
26
|
+
export function ImmediateRenderObject() {
|
|
89
27
|
|
|
90
|
-
console.
|
|
91
|
-
return materials;
|
|
28
|
+
console.error( 'THREE.ImmediateRenderObject has been removed.' );
|
|
92
29
|
|
|
93
30
|
}
|
|
94
31
|
|
|
95
|
-
|
|
32
|
+
// r138, 48b05d3500acc084df50be9b4c90781ad9b8cb17
|
|
96
33
|
|
|
97
|
-
|
|
98
|
-
materials.isMultiMaterial = true;
|
|
99
|
-
materials.materials = materials;
|
|
100
|
-
materials.clone = function () {
|
|
34
|
+
export class WebGLMultisampleRenderTarget extends WebGLRenderTarget {
|
|
101
35
|
|
|
102
|
-
|
|
36
|
+
constructor( width, height, options ) {
|
|
103
37
|
|
|
104
|
-
|
|
38
|
+
console.error( 'THREE.WebGLMultisampleRenderTarget has been removed. Use a normal render target and set the "samples" property to greater 0 to enable multisampling.' );
|
|
39
|
+
super( width, height, options );
|
|
40
|
+
this.samples = 4;
|
|
105
41
|
|
|
106
|
-
|
|
42
|
+
}
|
|
107
43
|
|
|
108
44
|
}
|
|
109
45
|
|
|
110
|
-
|
|
46
|
+
// r138, f9cd9cab03b7b64244e304900a3a2eeaa3a588ce
|
|
111
47
|
|
|
112
|
-
|
|
113
|
-
return new Points( geometry, material );
|
|
48
|
+
export class DataTexture2DArray extends DataArrayTexture {
|
|
114
49
|
|
|
115
|
-
|
|
50
|
+
constructor( data, width, height, depth ) {
|
|
116
51
|
|
|
117
|
-
|
|
52
|
+
console.warn( 'THREE.DataTexture2DArray has been renamed to DataArrayTexture.' );
|
|
53
|
+
super( data, width, height, depth );
|
|
118
54
|
|
|
119
|
-
|
|
120
|
-
return new Sprite( material );
|
|
55
|
+
}
|
|
121
56
|
|
|
122
57
|
}
|
|
123
58
|
|
|
124
|
-
|
|
59
|
+
// r138, f9cd9cab03b7b64244e304900a3a2eeaa3a588ce
|
|
125
60
|
|
|
126
|
-
|
|
127
|
-
return new Points( geometry, material );
|
|
61
|
+
export class DataTexture3D extends Data3DTexture {
|
|
128
62
|
|
|
129
|
-
|
|
63
|
+
constructor( data, width, height, depth ) {
|
|
130
64
|
|
|
131
|
-
|
|
65
|
+
console.warn( 'THREE.DataTexture3D has been renamed to Data3DTexture.' );
|
|
66
|
+
super( data, width, height, depth );
|
|
132
67
|
|
|
133
|
-
|
|
134
|
-
return new PointsMaterial( parameters );
|
|
68
|
+
}
|
|
135
69
|
|
|
136
70
|
}
|
|
137
71
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
console.warn( 'THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial.' );
|
|
141
|
-
return new PointsMaterial( parameters );
|
|
142
|
-
|
|
143
|
-
}
|
|
72
|
+
// r144
|
|
144
73
|
|
|
145
|
-
export
|
|
74
|
+
export class BoxBufferGeometry extends BoxGeometry {
|
|
146
75
|
|
|
147
|
-
|
|
148
|
-
return new PointsMaterial( parameters );
|
|
76
|
+
constructor( width, height, depth, widthSegments, heightSegments, depthSegments ) {
|
|
149
77
|
|
|
150
|
-
|
|
78
|
+
console.warn( 'THREE.BoxBufferGeometry has been renamed to THREE.BoxGeometry.' );
|
|
79
|
+
super( width, height, depth, widthSegments, heightSegments, depthSegments );
|
|
151
80
|
|
|
152
|
-
export function Vertex( x, y, z ) {
|
|
153
81
|
|
|
154
|
-
|
|
155
|
-
return new Vector3( x, y, z );
|
|
82
|
+
}
|
|
156
83
|
|
|
157
84
|
}
|
|
158
85
|
|
|
159
|
-
//
|
|
160
|
-
|
|
161
|
-
export function DynamicBufferAttribute( array, itemSize ) {
|
|
86
|
+
// r144
|
|
162
87
|
|
|
163
|
-
|
|
164
|
-
return new BufferAttribute( array, itemSize ).setUsage( DynamicDrawUsage );
|
|
88
|
+
export class CapsuleBufferGeometry extends CapsuleGeometry {
|
|
165
89
|
|
|
166
|
-
|
|
90
|
+
constructor( radius, length, capSegments, radialSegments ) {
|
|
167
91
|
|
|
168
|
-
|
|
92
|
+
console.warn( 'THREE.CapsuleBufferGeometry has been renamed to THREE.CapsuleGeometry.' );
|
|
93
|
+
super( radius, length, capSegments, radialSegments );
|
|
169
94
|
|
|
170
|
-
|
|
171
|
-
return new Int8BufferAttribute( array, itemSize );
|
|
95
|
+
}
|
|
172
96
|
|
|
173
97
|
}
|
|
174
98
|
|
|
175
|
-
|
|
99
|
+
// r144
|
|
176
100
|
|
|
177
|
-
|
|
178
|
-
return new Uint8BufferAttribute( array, itemSize );
|
|
101
|
+
export class CircleBufferGeometry extends CircleGeometry {
|
|
179
102
|
|
|
180
|
-
|
|
103
|
+
constructor( radius, segments, thetaStart, thetaLength ) {
|
|
181
104
|
|
|
182
|
-
|
|
105
|
+
console.warn( 'THREE.CircleBufferGeometry has been renamed to THREE.CircleGeometry.' );
|
|
106
|
+
super( radius, segments, thetaStart, thetaLength );
|
|
183
107
|
|
|
184
|
-
|
|
185
|
-
return new Uint8ClampedBufferAttribute( array, itemSize );
|
|
108
|
+
}
|
|
186
109
|
|
|
187
110
|
}
|
|
188
111
|
|
|
189
|
-
|
|
112
|
+
// r144
|
|
190
113
|
|
|
191
|
-
|
|
192
|
-
return new Int16BufferAttribute( array, itemSize );
|
|
114
|
+
export class ConeBufferGeometry extends ConeGeometry {
|
|
193
115
|
|
|
194
|
-
|
|
116
|
+
constructor( radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) {
|
|
195
117
|
|
|
196
|
-
|
|
118
|
+
console.warn( 'THREE.ConeBufferGeometry has been renamed to THREE.ConeGeometry.' );
|
|
119
|
+
super( radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength );
|
|
197
120
|
|
|
198
|
-
|
|
199
|
-
return new Uint16BufferAttribute( array, itemSize );
|
|
121
|
+
}
|
|
200
122
|
|
|
201
123
|
}
|
|
202
124
|
|
|
203
|
-
|
|
125
|
+
// r144
|
|
204
126
|
|
|
205
|
-
|
|
206
|
-
return new Int32BufferAttribute( array, itemSize );
|
|
127
|
+
export class CylinderBufferGeometry extends CylinderGeometry {
|
|
207
128
|
|
|
208
|
-
|
|
129
|
+
constructor( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) {
|
|
209
130
|
|
|
210
|
-
|
|
131
|
+
console.warn( 'THREE.CylinderBufferGeometry has been renamed to THREE.CylinderGeometry.' );
|
|
132
|
+
super( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength );
|
|
211
133
|
|
|
212
|
-
|
|
213
|
-
return new Uint32BufferAttribute( array, itemSize );
|
|
134
|
+
}
|
|
214
135
|
|
|
215
136
|
}
|
|
216
137
|
|
|
217
|
-
|
|
138
|
+
// r144
|
|
218
139
|
|
|
219
|
-
|
|
220
|
-
return new Float32BufferAttribute( array, itemSize );
|
|
140
|
+
export class DodecahedronBufferGeometry extends DodecahedronGeometry {
|
|
221
141
|
|
|
222
|
-
|
|
142
|
+
constructor( radius, detail ) {
|
|
223
143
|
|
|
224
|
-
|
|
144
|
+
console.warn( 'THREE.DodecahedronBufferGeometry has been renamed to THREE.DodecahedronGeometry.' );
|
|
145
|
+
super( radius, detail );
|
|
225
146
|
|
|
226
|
-
|
|
227
|
-
return new Float64BufferAttribute( array, itemSize );
|
|
147
|
+
}
|
|
228
148
|
|
|
229
149
|
}
|
|
230
150
|
|
|
231
|
-
//
|
|
232
|
-
|
|
233
|
-
Curve.create = function ( construct, getPoint ) {
|
|
234
|
-
|
|
235
|
-
console.log( 'THREE.Curve.create() has been deprecated' );
|
|
236
|
-
|
|
237
|
-
construct.prototype = Object.create( Curve.prototype );
|
|
238
|
-
construct.prototype.constructor = construct;
|
|
239
|
-
construct.prototype.getPoint = getPoint;
|
|
240
|
-
|
|
241
|
-
return construct;
|
|
242
|
-
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
//
|
|
151
|
+
// r144
|
|
246
152
|
|
|
247
|
-
|
|
153
|
+
export class ExtrudeBufferGeometry extends ExtrudeGeometry {
|
|
248
154
|
|
|
249
|
-
|
|
250
|
-
return this.setFromPoints( points );
|
|
155
|
+
constructor( shapes, options ) {
|
|
251
156
|
|
|
252
|
-
|
|
157
|
+
console.warn( 'THREE.ExtrudeBufferGeometry has been renamed to THREE.ExtrudeGeometry.' );
|
|
158
|
+
super( shapes, options );
|
|
253
159
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
export function AxisHelper( size ) {
|
|
257
|
-
|
|
258
|
-
console.warn( 'THREE.AxisHelper has been renamed to THREE.AxesHelper.' );
|
|
259
|
-
return new AxesHelper( size );
|
|
160
|
+
}
|
|
260
161
|
|
|
261
162
|
}
|
|
262
163
|
|
|
263
|
-
|
|
164
|
+
// r144
|
|
264
165
|
|
|
265
|
-
|
|
266
|
-
return new BoxHelper( object, color );
|
|
166
|
+
export class IcosahedronBufferGeometry extends IcosahedronGeometry {
|
|
267
167
|
|
|
268
|
-
|
|
168
|
+
constructor( radius, detail ) {
|
|
269
169
|
|
|
270
|
-
|
|
170
|
+
console.warn( 'THREE.IcosahedronBufferGeometry has been renamed to THREE.IcosahedronGeometry.' );
|
|
171
|
+
super( radius, detail );
|
|
271
172
|
|
|
272
|
-
|
|
273
|
-
return new LineSegments( new EdgesGeometry( object.geometry ), new LineBasicMaterial( { color: hex !== undefined ? hex : 0xffffff } ) );
|
|
173
|
+
}
|
|
274
174
|
|
|
275
175
|
}
|
|
276
176
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
console.error( 'THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.' );
|
|
280
|
-
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
SkeletonHelper.prototype.update = function () {
|
|
177
|
+
// r144
|
|
284
178
|
|
|
285
|
-
|
|
179
|
+
export class LatheBufferGeometry extends LatheGeometry {
|
|
286
180
|
|
|
287
|
-
|
|
181
|
+
constructor( points, segments, phiStart, phiLength ) {
|
|
288
182
|
|
|
289
|
-
|
|
183
|
+
console.warn( 'THREE.LatheBufferGeometry has been renamed to THREE.LatheGeometry.' );
|
|
184
|
+
super( points, segments, phiStart, phiLength );
|
|
290
185
|
|
|
291
|
-
|
|
292
|
-
return new LineSegments( new WireframeGeometry( object.geometry ), new LineBasicMaterial( { color: hex !== undefined ? hex : 0xffffff } ) );
|
|
186
|
+
}
|
|
293
187
|
|
|
294
188
|
}
|
|
295
189
|
|
|
296
|
-
//
|
|
297
|
-
|
|
298
|
-
Loader.prototype.extractUrlBase = function ( url ) {
|
|
299
|
-
|
|
300
|
-
console.warn( 'THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead.' );
|
|
301
|
-
return LoaderUtils.extractUrlBase( url );
|
|
302
|
-
|
|
303
|
-
};
|
|
190
|
+
// r144
|
|
304
191
|
|
|
305
|
-
|
|
192
|
+
export class OctahedronBufferGeometry extends OctahedronGeometry {
|
|
306
193
|
|
|
307
|
-
|
|
194
|
+
constructor( radius, detail ) {
|
|
308
195
|
|
|
309
|
-
console.
|
|
310
|
-
|
|
311
|
-
},
|
|
312
|
-
|
|
313
|
-
get: function ( /* file */ ) {
|
|
314
|
-
|
|
315
|
-
console.error( 'THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.' );
|
|
196
|
+
console.warn( 'THREE.OctahedronBufferGeometry has been renamed to THREE.OctahedronGeometry.' );
|
|
197
|
+
super( radius, detail );
|
|
316
198
|
|
|
317
199
|
}
|
|
318
200
|
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
export function XHRLoader( manager ) {
|
|
322
|
-
|
|
323
|
-
console.warn( 'THREE.XHRLoader has been renamed to THREE.FileLoader.' );
|
|
324
|
-
return new FileLoader( manager );
|
|
325
|
-
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
export function BinaryTextureLoader( manager ) {
|
|
329
|
-
|
|
330
|
-
console.warn( 'THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader.' );
|
|
331
|
-
return new DataTextureLoader( manager );
|
|
332
|
-
|
|
333
201
|
}
|
|
334
202
|
|
|
335
|
-
//
|
|
336
|
-
|
|
337
|
-
Box2.prototype.center = function ( optionalTarget ) {
|
|
338
|
-
|
|
339
|
-
console.warn( 'THREE.Box2: .center() has been renamed to .getCenter().' );
|
|
340
|
-
return this.getCenter( optionalTarget );
|
|
341
|
-
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
Box2.prototype.empty = function () {
|
|
345
|
-
|
|
346
|
-
console.warn( 'THREE.Box2: .empty() has been renamed to .isEmpty().' );
|
|
347
|
-
return this.isEmpty();
|
|
348
|
-
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
Box2.prototype.isIntersectionBox = function ( box ) {
|
|
352
|
-
|
|
353
|
-
console.warn( 'THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox().' );
|
|
354
|
-
return this.intersectsBox( box );
|
|
355
|
-
|
|
356
|
-
};
|
|
357
|
-
|
|
358
|
-
Box2.prototype.size = function ( optionalTarget ) {
|
|
359
|
-
|
|
360
|
-
console.warn( 'THREE.Box2: .size() has been renamed to .getSize().' );
|
|
361
|
-
return this.getSize( optionalTarget );
|
|
362
|
-
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
//
|
|
366
|
-
|
|
367
|
-
Box3.prototype.center = function ( optionalTarget ) {
|
|
368
|
-
|
|
369
|
-
console.warn( 'THREE.Box3: .center() has been renamed to .getCenter().' );
|
|
370
|
-
return this.getCenter( optionalTarget );
|
|
371
|
-
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
Box3.prototype.empty = function () {
|
|
375
|
-
|
|
376
|
-
console.warn( 'THREE.Box3: .empty() has been renamed to .isEmpty().' );
|
|
377
|
-
return this.isEmpty();
|
|
378
|
-
|
|
379
|
-
};
|
|
380
|
-
|
|
381
|
-
Box3.prototype.isIntersectionBox = function ( box ) {
|
|
382
|
-
|
|
383
|
-
console.warn( 'THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox().' );
|
|
384
|
-
return this.intersectsBox( box );
|
|
385
|
-
|
|
386
|
-
};
|
|
387
|
-
|
|
388
|
-
Box3.prototype.isIntersectionSphere = function ( sphere ) {
|
|
389
|
-
|
|
390
|
-
console.warn( 'THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere().' );
|
|
391
|
-
return this.intersectsSphere( sphere );
|
|
392
|
-
|
|
393
|
-
};
|
|
394
|
-
|
|
395
|
-
Box3.prototype.size = function ( optionalTarget ) {
|
|
396
|
-
|
|
397
|
-
console.warn( 'THREE.Box3: .size() has been renamed to .getSize().' );
|
|
398
|
-
return this.getSize( optionalTarget );
|
|
399
|
-
|
|
400
|
-
};
|
|
401
|
-
|
|
402
|
-
//
|
|
403
|
-
|
|
404
|
-
Sphere.prototype.empty = function () {
|
|
405
|
-
|
|
406
|
-
console.warn( 'THREE.Sphere: .empty() has been renamed to .isEmpty().' );
|
|
407
|
-
return this.isEmpty();
|
|
408
|
-
|
|
409
|
-
};
|
|
410
|
-
|
|
411
|
-
//
|
|
412
|
-
|
|
413
|
-
Frustum.prototype.setFromMatrix = function ( m ) {
|
|
414
|
-
|
|
415
|
-
console.warn( 'THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix().' );
|
|
416
|
-
return this.setFromProjectionMatrix( m );
|
|
417
|
-
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
//
|
|
421
|
-
|
|
422
|
-
Line3.prototype.center = function ( optionalTarget ) {
|
|
423
|
-
|
|
424
|
-
console.warn( 'THREE.Line3: .center() has been renamed to .getCenter().' );
|
|
425
|
-
return this.getCenter( optionalTarget );
|
|
426
|
-
|
|
427
|
-
};
|
|
428
|
-
|
|
429
|
-
//
|
|
430
|
-
|
|
431
|
-
Matrix3.prototype.flattenToArrayOffset = function ( array, offset ) {
|
|
432
|
-
|
|
433
|
-
console.warn( 'THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead.' );
|
|
434
|
-
return this.toArray( array, offset );
|
|
435
|
-
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
Matrix3.prototype.multiplyVector3 = function ( vector ) {
|
|
439
|
-
|
|
440
|
-
console.warn( 'THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead.' );
|
|
441
|
-
return vector.applyMatrix3( this );
|
|
442
|
-
|
|
443
|
-
};
|
|
444
|
-
|
|
445
|
-
Matrix3.prototype.multiplyVector3Array = function ( /* a */ ) {
|
|
446
|
-
|
|
447
|
-
console.error( 'THREE.Matrix3: .multiplyVector3Array() has been removed.' );
|
|
448
|
-
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
Matrix3.prototype.applyToBufferAttribute = function ( attribute ) {
|
|
452
|
-
|
|
453
|
-
console.warn( 'THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead.' );
|
|
454
|
-
return attribute.applyMatrix3( this );
|
|
455
|
-
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
Matrix3.prototype.applyToVector3Array = function ( /* array, offset, length */ ) {
|
|
459
|
-
|
|
460
|
-
console.error( 'THREE.Matrix3: .applyToVector3Array() has been removed.' );
|
|
461
|
-
|
|
462
|
-
};
|
|
463
|
-
|
|
464
|
-
Matrix3.prototype.getInverse = function ( matrix ) {
|
|
465
|
-
|
|
466
|
-
console.warn( 'THREE.Matrix3: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead.' );
|
|
467
|
-
return this.copy( matrix ).invert();
|
|
468
|
-
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
//
|
|
472
|
-
|
|
473
|
-
Matrix4.prototype.extractPosition = function ( m ) {
|
|
474
|
-
|
|
475
|
-
console.warn( 'THREE.Matrix4: .extractPosition() has been renamed to .copyPosition().' );
|
|
476
|
-
return this.copyPosition( m );
|
|
477
|
-
|
|
478
|
-
};
|
|
479
|
-
|
|
480
|
-
Matrix4.prototype.flattenToArrayOffset = function ( array, offset ) {
|
|
481
|
-
|
|
482
|
-
console.warn( 'THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead.' );
|
|
483
|
-
return this.toArray( array, offset );
|
|
484
|
-
|
|
485
|
-
};
|
|
486
|
-
|
|
487
|
-
Matrix4.prototype.getPosition = function () {
|
|
488
|
-
|
|
489
|
-
console.warn( 'THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead.' );
|
|
490
|
-
return new Vector3().setFromMatrixColumn( this, 3 );
|
|
491
|
-
|
|
492
|
-
};
|
|
493
|
-
|
|
494
|
-
Matrix4.prototype.setRotationFromQuaternion = function ( q ) {
|
|
495
|
-
|
|
496
|
-
console.warn( 'THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion().' );
|
|
497
|
-
return this.makeRotationFromQuaternion( q );
|
|
498
|
-
|
|
499
|
-
};
|
|
500
|
-
|
|
501
|
-
Matrix4.prototype.multiplyToArray = function () {
|
|
502
|
-
|
|
503
|
-
console.warn( 'THREE.Matrix4: .multiplyToArray() has been removed.' );
|
|
203
|
+
// r144
|
|
504
204
|
|
|
505
|
-
|
|
205
|
+
export class PlaneBufferGeometry extends PlaneGeometry {
|
|
506
206
|
|
|
507
|
-
|
|
207
|
+
constructor( width, height, widthSegments, heightSegments ) {
|
|
508
208
|
|
|
509
|
-
|
|
510
|
-
|
|
209
|
+
console.warn( 'THREE.PlaneBufferGeometry has been renamed to THREE.PlaneGeometry.' );
|
|
210
|
+
super( width, height, widthSegments, heightSegments );
|
|
511
211
|
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
Matrix4.prototype.multiplyVector4 = function ( vector ) {
|
|
515
|
-
|
|
516
|
-
console.warn( 'THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead.' );
|
|
517
|
-
return vector.applyMatrix4( this );
|
|
518
|
-
|
|
519
|
-
};
|
|
520
|
-
|
|
521
|
-
Matrix4.prototype.multiplyVector3Array = function ( /* a */ ) {
|
|
522
|
-
|
|
523
|
-
console.error( 'THREE.Matrix4: .multiplyVector3Array() has been removed.' );
|
|
524
|
-
|
|
525
|
-
};
|
|
526
|
-
|
|
527
|
-
Matrix4.prototype.rotateAxis = function ( v ) {
|
|
528
|
-
|
|
529
|
-
console.warn( 'THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead.' );
|
|
530
|
-
v.transformDirection( this );
|
|
531
|
-
|
|
532
|
-
};
|
|
533
|
-
|
|
534
|
-
Matrix4.prototype.crossVector = function ( vector ) {
|
|
535
|
-
|
|
536
|
-
console.warn( 'THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead.' );
|
|
537
|
-
return vector.applyMatrix4( this );
|
|
538
|
-
|
|
539
|
-
};
|
|
540
|
-
|
|
541
|
-
Matrix4.prototype.translate = function () {
|
|
542
|
-
|
|
543
|
-
console.error( 'THREE.Matrix4: .translate() has been removed.' );
|
|
544
|
-
|
|
545
|
-
};
|
|
546
|
-
|
|
547
|
-
Matrix4.prototype.rotateX = function () {
|
|
548
|
-
|
|
549
|
-
console.error( 'THREE.Matrix4: .rotateX() has been removed.' );
|
|
550
|
-
|
|
551
|
-
};
|
|
552
|
-
|
|
553
|
-
Matrix4.prototype.rotateY = function () {
|
|
554
|
-
|
|
555
|
-
console.error( 'THREE.Matrix4: .rotateY() has been removed.' );
|
|
556
|
-
|
|
557
|
-
};
|
|
558
|
-
|
|
559
|
-
Matrix4.prototype.rotateZ = function () {
|
|
560
|
-
|
|
561
|
-
console.error( 'THREE.Matrix4: .rotateZ() has been removed.' );
|
|
562
|
-
|
|
563
|
-
};
|
|
564
|
-
|
|
565
|
-
Matrix4.prototype.rotateByAxis = function () {
|
|
566
|
-
|
|
567
|
-
console.error( 'THREE.Matrix4: .rotateByAxis() has been removed.' );
|
|
568
|
-
|
|
569
|
-
};
|
|
570
|
-
|
|
571
|
-
Matrix4.prototype.applyToBufferAttribute = function ( attribute ) {
|
|
572
|
-
|
|
573
|
-
console.warn( 'THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead.' );
|
|
574
|
-
return attribute.applyMatrix4( this );
|
|
575
|
-
|
|
576
|
-
};
|
|
577
|
-
|
|
578
|
-
Matrix4.prototype.applyToVector3Array = function ( /* array, offset, length */ ) {
|
|
579
|
-
|
|
580
|
-
console.error( 'THREE.Matrix4: .applyToVector3Array() has been removed.' );
|
|
581
|
-
|
|
582
|
-
};
|
|
583
|
-
|
|
584
|
-
Matrix4.prototype.makeFrustum = function ( left, right, bottom, top, near, far ) {
|
|
585
|
-
|
|
586
|
-
console.warn( 'THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead.' );
|
|
587
|
-
return this.makePerspective( left, right, top, bottom, near, far );
|
|
588
|
-
|
|
589
|
-
};
|
|
590
|
-
|
|
591
|
-
Matrix4.prototype.getInverse = function ( matrix ) {
|
|
592
|
-
|
|
593
|
-
console.warn( 'THREE.Matrix4: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead.' );
|
|
594
|
-
return this.copy( matrix ).invert();
|
|
595
|
-
|
|
596
|
-
};
|
|
597
|
-
|
|
598
|
-
//
|
|
599
|
-
|
|
600
|
-
Plane.prototype.isIntersectionLine = function ( line ) {
|
|
601
|
-
|
|
602
|
-
console.warn( 'THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine().' );
|
|
603
|
-
return this.intersectsLine( line );
|
|
604
|
-
|
|
605
|
-
};
|
|
606
|
-
|
|
607
|
-
//
|
|
608
|
-
|
|
609
|
-
Quaternion.prototype.multiplyVector3 = function ( vector ) {
|
|
610
|
-
|
|
611
|
-
console.warn( 'THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead.' );
|
|
612
|
-
return vector.applyQuaternion( this );
|
|
613
|
-
|
|
614
|
-
};
|
|
615
|
-
|
|
616
|
-
Quaternion.prototype.inverse = function ( ) {
|
|
617
|
-
|
|
618
|
-
console.warn( 'THREE.Quaternion: .inverse() has been renamed to invert().' );
|
|
619
|
-
return this.invert();
|
|
620
|
-
|
|
621
|
-
};
|
|
622
|
-
|
|
623
|
-
//
|
|
624
|
-
|
|
625
|
-
Ray.prototype.isIntersectionBox = function ( box ) {
|
|
626
|
-
|
|
627
|
-
console.warn( 'THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox().' );
|
|
628
|
-
return this.intersectsBox( box );
|
|
629
|
-
|
|
630
|
-
};
|
|
631
|
-
|
|
632
|
-
Ray.prototype.isIntersectionPlane = function ( plane ) {
|
|
633
|
-
|
|
634
|
-
console.warn( 'THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane().' );
|
|
635
|
-
return this.intersectsPlane( plane );
|
|
636
|
-
|
|
637
|
-
};
|
|
638
|
-
|
|
639
|
-
Ray.prototype.isIntersectionSphere = function ( sphere ) {
|
|
640
|
-
|
|
641
|
-
console.warn( 'THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere().' );
|
|
642
|
-
return this.intersectsSphere( sphere );
|
|
643
|
-
|
|
644
|
-
};
|
|
645
|
-
|
|
646
|
-
//
|
|
647
|
-
|
|
648
|
-
Triangle.prototype.area = function () {
|
|
649
|
-
|
|
650
|
-
console.warn( 'THREE.Triangle: .area() has been renamed to .getArea().' );
|
|
651
|
-
return this.getArea();
|
|
652
|
-
|
|
653
|
-
};
|
|
654
|
-
|
|
655
|
-
Triangle.prototype.barycoordFromPoint = function ( point, target ) {
|
|
656
|
-
|
|
657
|
-
console.warn( 'THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord().' );
|
|
658
|
-
return this.getBarycoord( point, target );
|
|
659
|
-
|
|
660
|
-
};
|
|
661
|
-
|
|
662
|
-
Triangle.prototype.midpoint = function ( target ) {
|
|
663
|
-
|
|
664
|
-
console.warn( 'THREE.Triangle: .midpoint() has been renamed to .getMidpoint().' );
|
|
665
|
-
return this.getMidpoint( target );
|
|
666
|
-
|
|
667
|
-
};
|
|
668
|
-
|
|
669
|
-
Triangle.prototypenormal = function ( target ) {
|
|
670
|
-
|
|
671
|
-
console.warn( 'THREE.Triangle: .normal() has been renamed to .getNormal().' );
|
|
672
|
-
return this.getNormal( target );
|
|
673
|
-
|
|
674
|
-
};
|
|
675
|
-
|
|
676
|
-
Triangle.prototype.plane = function ( target ) {
|
|
677
|
-
|
|
678
|
-
console.warn( 'THREE.Triangle: .plane() has been renamed to .getPlane().' );
|
|
679
|
-
return this.getPlane( target );
|
|
680
|
-
|
|
681
|
-
};
|
|
682
|
-
|
|
683
|
-
Triangle.barycoordFromPoint = function ( point, a, b, c, target ) {
|
|
684
|
-
|
|
685
|
-
console.warn( 'THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord().' );
|
|
686
|
-
return Triangle.getBarycoord( point, a, b, c, target );
|
|
687
|
-
|
|
688
|
-
};
|
|
689
|
-
|
|
690
|
-
Triangle.normal = function ( a, b, c, target ) {
|
|
691
|
-
|
|
692
|
-
console.warn( 'THREE.Triangle: .normal() has been renamed to .getNormal().' );
|
|
693
|
-
return Triangle.getNormal( a, b, c, target );
|
|
694
|
-
|
|
695
|
-
};
|
|
696
|
-
|
|
697
|
-
//
|
|
698
|
-
|
|
699
|
-
Shape.prototype.extractAllPoints = function ( divisions ) {
|
|
700
|
-
|
|
701
|
-
console.warn( 'THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead.' );
|
|
702
|
-
return this.extractPoints( divisions );
|
|
703
|
-
|
|
704
|
-
};
|
|
705
|
-
|
|
706
|
-
Shape.prototype.extrude = function ( options ) {
|
|
707
|
-
|
|
708
|
-
console.warn( 'THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead.' );
|
|
709
|
-
return new ExtrudeGeometry( this, options );
|
|
710
|
-
|
|
711
|
-
};
|
|
712
|
-
|
|
713
|
-
Shape.prototype.makeGeometry = function ( options ) {
|
|
714
|
-
|
|
715
|
-
console.warn( 'THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead.' );
|
|
716
|
-
return new ShapeGeometry( this, options );
|
|
717
|
-
|
|
718
|
-
};
|
|
719
|
-
|
|
720
|
-
//
|
|
721
|
-
|
|
722
|
-
Vector2.prototype.fromAttribute = function ( attribute, index, offset ) {
|
|
723
|
-
|
|
724
|
-
console.warn( 'THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute().' );
|
|
725
|
-
return this.fromBufferAttribute( attribute, index, offset );
|
|
726
|
-
|
|
727
|
-
};
|
|
728
|
-
|
|
729
|
-
Vector2.prototype.distanceToManhattan = function ( v ) {
|
|
730
|
-
|
|
731
|
-
console.warn( 'THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo().' );
|
|
732
|
-
return this.manhattanDistanceTo( v );
|
|
733
|
-
|
|
734
|
-
};
|
|
735
|
-
|
|
736
|
-
Vector2.prototype.lengthManhattan = function () {
|
|
737
|
-
|
|
738
|
-
console.warn( 'THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength().' );
|
|
739
|
-
return this.manhattanLength();
|
|
740
|
-
|
|
741
|
-
};
|
|
742
|
-
|
|
743
|
-
//
|
|
744
|
-
|
|
745
|
-
Vector3.prototype.setEulerFromRotationMatrix = function () {
|
|
746
|
-
|
|
747
|
-
console.error( 'THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.' );
|
|
748
|
-
|
|
749
|
-
};
|
|
750
|
-
|
|
751
|
-
Vector3.prototype.setEulerFromQuaternion = function () {
|
|
752
|
-
|
|
753
|
-
console.error( 'THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.' );
|
|
754
|
-
|
|
755
|
-
};
|
|
756
|
-
|
|
757
|
-
Vector3.prototype.getPositionFromMatrix = function ( m ) {
|
|
212
|
+
}
|
|
758
213
|
|
|
759
|
-
|
|
760
|
-
return this.setFromMatrixPosition( m );
|
|
214
|
+
}
|
|
761
215
|
|
|
762
|
-
|
|
216
|
+
// r144
|
|
763
217
|
|
|
764
|
-
|
|
218
|
+
export class PolyhedronBufferGeometry extends PolyhedronGeometry {
|
|
765
219
|
|
|
766
|
-
|
|
767
|
-
return this.setFromMatrixScale( m );
|
|
220
|
+
constructor( vertices, indices, radius, detail ) {
|
|
768
221
|
|
|
769
|
-
|
|
222
|
+
console.warn( 'THREE.PolyhedronBufferGeometry has been renamed to THREE.PolyhedronGeometry.' );
|
|
223
|
+
super( vertices, indices, radius, detail );
|
|
770
224
|
|
|
771
|
-
|
|
225
|
+
}
|
|
772
226
|
|
|
773
|
-
|
|
774
|
-
return this.setFromMatrixColumn( matrix, index );
|
|
227
|
+
}
|
|
775
228
|
|
|
776
|
-
|
|
229
|
+
// r144
|
|
777
230
|
|
|
778
|
-
|
|
231
|
+
export class RingBufferGeometry extends RingGeometry {
|
|
779
232
|
|
|
780
|
-
|
|
781
|
-
return this.applyMatrix4( m );
|
|
233
|
+
constructor( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength ) {
|
|
782
234
|
|
|
783
|
-
|
|
235
|
+
console.warn( 'THREE.RingBufferGeometry has been renamed to THREE.RingGeometry.' );
|
|
236
|
+
super( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength );
|
|
784
237
|
|
|
785
|
-
|
|
238
|
+
}
|
|
786
239
|
|
|
787
|
-
|
|
788
|
-
return this.fromBufferAttribute( attribute, index, offset );
|
|
240
|
+
}
|
|
789
241
|
|
|
790
|
-
|
|
242
|
+
// r144
|
|
791
243
|
|
|
792
|
-
|
|
244
|
+
export class ShapeBufferGeometry extends ShapeGeometry {
|
|
793
245
|
|
|
794
|
-
|
|
795
|
-
return this.manhattanDistanceTo( v );
|
|
246
|
+
constructor( shapes, curveSegments ) {
|
|
796
247
|
|
|
797
|
-
|
|
248
|
+
console.warn( 'THREE.ShapeBufferGeometry has been renamed to THREE.ShapeGeometry.' );
|
|
249
|
+
super( shapes, curveSegments );
|
|
798
250
|
|
|
799
|
-
|
|
251
|
+
}
|
|
800
252
|
|
|
801
|
-
|
|
802
|
-
return this.manhattanLength();
|
|
253
|
+
}
|
|
803
254
|
|
|
804
|
-
|
|
255
|
+
// r144
|
|
805
256
|
|
|
806
|
-
|
|
257
|
+
export class SphereBufferGeometry extends SphereGeometry {
|
|
807
258
|
|
|
808
|
-
|
|
259
|
+
constructor( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength ) {
|
|
809
260
|
|
|
810
|
-
|
|
811
|
-
|
|
261
|
+
console.warn( 'THREE.SphereBufferGeometry has been renamed to THREE.SphereGeometry.' );
|
|
262
|
+
super( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength );
|
|
812
263
|
|
|
813
|
-
}
|
|
264
|
+
}
|
|
814
265
|
|
|
815
|
-
|
|
266
|
+
}
|
|
816
267
|
|
|
817
|
-
|
|
818
|
-
return this.manhattanLength();
|
|
268
|
+
// r144
|
|
819
269
|
|
|
820
|
-
|
|
270
|
+
export class TetrahedronBufferGeometry extends TetrahedronGeometry {
|
|
821
271
|
|
|
822
|
-
|
|
272
|
+
constructor( radius, detail ) {
|
|
823
273
|
|
|
824
|
-
|
|
274
|
+
console.warn( 'THREE.TetrahedronBufferGeometry has been renamed to THREE.TetrahedronGeometry.' );
|
|
275
|
+
super( radius, detail );
|
|
825
276
|
|
|
826
|
-
|
|
827
|
-
return this.getObjectByName( name );
|
|
277
|
+
}
|
|
828
278
|
|
|
829
|
-
}
|
|
279
|
+
}
|
|
830
280
|
|
|
831
|
-
|
|
281
|
+
// r144
|
|
832
282
|
|
|
833
|
-
|
|
283
|
+
export class TorusBufferGeometry extends TorusGeometry {
|
|
834
284
|
|
|
835
|
-
|
|
285
|
+
constructor( radius, tube, radialSegments, tubularSegments, arc ) {
|
|
836
286
|
|
|
837
|
-
|
|
287
|
+
console.warn( 'THREE.TorusBufferGeometry has been renamed to THREE.TorusGeometry.' );
|
|
288
|
+
super( radius, tube, radialSegments, tubularSegments, arc );
|
|
838
289
|
|
|
839
|
-
|
|
840
|
-
return this.translateOnAxis( axis, distance );
|
|
290
|
+
}
|
|
841
291
|
|
|
842
|
-
}
|
|
292
|
+
}
|
|
843
293
|
|
|
844
|
-
|
|
294
|
+
// r144
|
|
845
295
|
|
|
846
|
-
|
|
296
|
+
export class TorusKnotBufferGeometry extends TorusKnotGeometry {
|
|
847
297
|
|
|
848
|
-
|
|
298
|
+
constructor( radius, tube, tubularSegments, radialSegments, p, q ) {
|
|
849
299
|
|
|
850
|
-
|
|
300
|
+
console.warn( 'THREE.TorusKnotBufferGeometry has been renamed to THREE.TorusKnotGeometry.' );
|
|
301
|
+
super( radius, tube, tubularSegments, radialSegments, p, q );
|
|
851
302
|
|
|
852
|
-
|
|
853
|
-
return this.applyMatrix4( matrix );
|
|
303
|
+
}
|
|
854
304
|
|
|
855
|
-
}
|
|
305
|
+
}
|
|
856
306
|
|
|
857
|
-
|
|
307
|
+
// r144
|
|
858
308
|
|
|
859
|
-
|
|
860
|
-
get: function () {
|
|
309
|
+
export class TubeBufferGeometry extends TubeGeometry {
|
|
861
310
|
|
|
862
|
-
|
|
863
|
-
return this.rotation.order;
|
|
311
|
+
constructor( path, tubularSegments, radius, radialSegments, closed ) {
|
|
864
312
|
|
|
865
|
-
|
|
866
|
-
|
|
313
|
+
console.warn( 'THREE.TubeBufferGeometry has been renamed to THREE.TubeGeometry.' );
|
|
314
|
+
super( path, tubularSegments, radius, radialSegments, closed );
|
|
867
315
|
|
|
868
|
-
|
|
869
|
-
this.rotation.order = value;
|
|
316
|
+
}
|
|
870
317
|
|
|
871
|
-
|
|
872
|
-
},
|
|
873
|
-
useQuaternion: {
|
|
874
|
-
get: function () {
|
|
318
|
+
}
|
|
875
319
|
|
|
876
|
-
console.warn( 'THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.' );
|
|
877
320
|
|
|
878
|
-
},
|
|
879
|
-
set: function () {
|
|
880
|
-
|
|
881
|
-
console.warn( 'THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.' );
|
|
882
|
-
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
} );
|
|
887
|
-
|
|
888
|
-
Mesh.prototype.setDrawMode = function () {
|
|
889
|
-
|
|
890
|
-
console.error( 'THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.' );
|
|
891
|
-
|
|
892
|
-
};
|
|
893
|
-
|
|
894
|
-
Object.defineProperties( Mesh.prototype, {
|
|
895
|
-
|
|
896
|
-
drawMode: {
|
|
897
|
-
get: function () {
|
|
898
|
-
|
|
899
|
-
console.error( 'THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode.' );
|
|
900
|
-
return TrianglesDrawMode;
|
|
901
|
-
|
|
902
|
-
},
|
|
903
|
-
set: function () {
|
|
904
|
-
|
|
905
|
-
console.error( 'THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.' );
|
|
906
|
-
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
} );
|
|
911
|
-
|
|
912
|
-
SkinnedMesh.prototype.initBones = function () {
|
|
913
|
-
|
|
914
|
-
console.error( 'THREE.SkinnedMesh: initBones() has been removed.' );
|
|
915
|
-
|
|
916
|
-
};
|
|
917
|
-
|
|
918
|
-
//
|
|
919
|
-
|
|
920
|
-
PerspectiveCamera.prototype.setLens = function ( focalLength, filmGauge ) {
|
|
921
|
-
|
|
922
|
-
console.warn( 'THREE.PerspectiveCamera.setLens is deprecated. ' +
|
|
923
|
-
'Use .setFocalLength and .filmGauge for a photographic setup.' );
|
|
924
|
-
|
|
925
|
-
if ( filmGauge !== undefined ) this.filmGauge = filmGauge;
|
|
926
|
-
this.setFocalLength( focalLength );
|
|
927
|
-
|
|
928
|
-
};
|
|
929
|
-
|
|
930
|
-
//
|
|
931
|
-
|
|
932
|
-
Object.defineProperties( Light.prototype, {
|
|
933
|
-
onlyShadow: {
|
|
934
|
-
set: function () {
|
|
935
|
-
|
|
936
|
-
console.warn( 'THREE.Light: .onlyShadow has been removed.' );
|
|
937
|
-
|
|
938
|
-
}
|
|
939
|
-
},
|
|
940
|
-
shadowCameraFov: {
|
|
941
|
-
set: function ( value ) {
|
|
942
|
-
|
|
943
|
-
console.warn( 'THREE.Light: .shadowCameraFov is now .shadow.camera.fov.' );
|
|
944
|
-
this.shadow.camera.fov = value;
|
|
945
|
-
|
|
946
|
-
}
|
|
947
|
-
},
|
|
948
|
-
shadowCameraLeft: {
|
|
949
|
-
set: function ( value ) {
|
|
950
|
-
|
|
951
|
-
console.warn( 'THREE.Light: .shadowCameraLeft is now .shadow.camera.left.' );
|
|
952
|
-
this.shadow.camera.left = value;
|
|
953
|
-
|
|
954
|
-
}
|
|
955
|
-
},
|
|
956
|
-
shadowCameraRight: {
|
|
957
|
-
set: function ( value ) {
|
|
958
|
-
|
|
959
|
-
console.warn( 'THREE.Light: .shadowCameraRight is now .shadow.camera.right.' );
|
|
960
|
-
this.shadow.camera.right = value;
|
|
961
|
-
|
|
962
|
-
}
|
|
963
|
-
},
|
|
964
|
-
shadowCameraTop: {
|
|
965
|
-
set: function ( value ) {
|
|
966
|
-
|
|
967
|
-
console.warn( 'THREE.Light: .shadowCameraTop is now .shadow.camera.top.' );
|
|
968
|
-
this.shadow.camera.top = value;
|
|
969
|
-
|
|
970
|
-
}
|
|
971
|
-
},
|
|
972
|
-
shadowCameraBottom: {
|
|
973
|
-
set: function ( value ) {
|
|
974
|
-
|
|
975
|
-
console.warn( 'THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom.' );
|
|
976
|
-
this.shadow.camera.bottom = value;
|
|
977
|
-
|
|
978
|
-
}
|
|
979
|
-
},
|
|
980
|
-
shadowCameraNear: {
|
|
981
|
-
set: function ( value ) {
|
|
982
|
-
|
|
983
|
-
console.warn( 'THREE.Light: .shadowCameraNear is now .shadow.camera.near.' );
|
|
984
|
-
this.shadow.camera.near = value;
|
|
985
|
-
|
|
986
|
-
}
|
|
987
|
-
},
|
|
988
|
-
shadowCameraFar: {
|
|
989
|
-
set: function ( value ) {
|
|
990
|
-
|
|
991
|
-
console.warn( 'THREE.Light: .shadowCameraFar is now .shadow.camera.far.' );
|
|
992
|
-
this.shadow.camera.far = value;
|
|
993
|
-
|
|
994
|
-
}
|
|
995
|
-
},
|
|
996
|
-
shadowCameraVisible: {
|
|
997
|
-
set: function () {
|
|
998
|
-
|
|
999
|
-
console.warn( 'THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.' );
|
|
1000
|
-
|
|
1001
|
-
}
|
|
1002
|
-
},
|
|
1003
|
-
shadowBias: {
|
|
1004
|
-
set: function ( value ) {
|
|
1005
|
-
|
|
1006
|
-
console.warn( 'THREE.Light: .shadowBias is now .shadow.bias.' );
|
|
1007
|
-
this.shadow.bias = value;
|
|
1008
|
-
|
|
1009
|
-
}
|
|
1010
|
-
},
|
|
1011
|
-
shadowDarkness: {
|
|
1012
|
-
set: function () {
|
|
1013
|
-
|
|
1014
|
-
console.warn( 'THREE.Light: .shadowDarkness has been removed.' );
|
|
1015
|
-
|
|
1016
|
-
}
|
|
1017
|
-
},
|
|
1018
|
-
shadowMapWidth: {
|
|
1019
|
-
set: function ( value ) {
|
|
1020
|
-
|
|
1021
|
-
console.warn( 'THREE.Light: .shadowMapWidth is now .shadow.mapSize.width.' );
|
|
1022
|
-
this.shadow.mapSize.width = value;
|
|
1023
|
-
|
|
1024
|
-
}
|
|
1025
|
-
},
|
|
1026
|
-
shadowMapHeight: {
|
|
1027
|
-
set: function ( value ) {
|
|
1028
|
-
|
|
1029
|
-
console.warn( 'THREE.Light: .shadowMapHeight is now .shadow.mapSize.height.' );
|
|
1030
|
-
this.shadow.mapSize.height = value;
|
|
1031
|
-
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
} );
|
|
1035
|
-
|
|
1036
|
-
//
|
|
1037
|
-
|
|
1038
|
-
Object.defineProperties( BufferAttribute.prototype, {
|
|
1039
|
-
|
|
1040
|
-
length: {
|
|
1041
|
-
get: function () {
|
|
1042
|
-
|
|
1043
|
-
console.warn( 'THREE.BufferAttribute: .length has been deprecated. Use .count instead.' );
|
|
1044
|
-
return this.array.length;
|
|
1045
|
-
|
|
1046
|
-
}
|
|
1047
|
-
},
|
|
1048
|
-
dynamic: {
|
|
1049
|
-
get: function () {
|
|
1050
|
-
|
|
1051
|
-
console.warn( 'THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead.' );
|
|
1052
|
-
return this.usage === DynamicDrawUsage;
|
|
1053
|
-
|
|
1054
|
-
},
|
|
1055
|
-
set: function ( /* value */ ) {
|
|
1056
|
-
|
|
1057
|
-
console.warn( 'THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead.' );
|
|
1058
|
-
this.setUsage( DynamicDrawUsage );
|
|
1059
|
-
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
} );
|
|
1064
|
-
|
|
1065
|
-
BufferAttribute.prototype.setDynamic = function ( value ) {
|
|
1066
|
-
|
|
1067
|
-
console.warn( 'THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead.' );
|
|
1068
|
-
this.setUsage( value === true ? DynamicDrawUsage : StaticDrawUsage );
|
|
1069
|
-
return this;
|
|
1070
|
-
|
|
1071
|
-
};
|
|
1072
|
-
|
|
1073
|
-
BufferAttribute.prototype.copyIndicesArray = function ( /* indices */ ) {
|
|
1074
|
-
|
|
1075
|
-
console.error( 'THREE.BufferAttribute: .copyIndicesArray() has been removed.' );
|
|
1076
|
-
|
|
1077
|
-
},
|
|
1078
|
-
|
|
1079
|
-
BufferAttribute.prototype.setArray = function ( /* array */ ) {
|
|
1080
|
-
|
|
1081
|
-
console.error( 'THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers' );
|
|
1082
|
-
|
|
1083
|
-
};
|
|
1084
|
-
|
|
1085
|
-
//
|
|
1086
|
-
|
|
1087
|
-
BufferGeometry.prototype.addIndex = function ( index ) {
|
|
1088
|
-
|
|
1089
|
-
console.warn( 'THREE.BufferGeometry: .addIndex() has been renamed to .setIndex().' );
|
|
1090
|
-
this.setIndex( index );
|
|
1091
|
-
|
|
1092
|
-
};
|
|
1093
|
-
|
|
1094
|
-
BufferGeometry.prototype.addAttribute = function ( name, attribute ) {
|
|
1095
|
-
|
|
1096
|
-
console.warn( 'THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute().' );
|
|
1097
|
-
|
|
1098
|
-
if ( ! ( attribute && attribute.isBufferAttribute ) && ! ( attribute && attribute.isInterleavedBufferAttribute ) ) {
|
|
1099
|
-
|
|
1100
|
-
console.warn( 'THREE.BufferGeometry: .addAttribute() now expects ( name, attribute ).' );
|
|
1101
|
-
|
|
1102
|
-
return this.setAttribute( name, new BufferAttribute( arguments[ 1 ], arguments[ 2 ] ) );
|
|
1103
|
-
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
if ( name === 'index' ) {
|
|
1107
|
-
|
|
1108
|
-
console.warn( 'THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute.' );
|
|
1109
|
-
this.setIndex( attribute );
|
|
1110
|
-
|
|
1111
|
-
return this;
|
|
1112
|
-
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
return this.setAttribute( name, attribute );
|
|
1116
|
-
|
|
1117
|
-
};
|
|
1118
|
-
|
|
1119
|
-
BufferGeometry.prototype.addDrawCall = function ( start, count, indexOffset ) {
|
|
1120
|
-
|
|
1121
|
-
if ( indexOffset !== undefined ) {
|
|
1122
|
-
|
|
1123
|
-
console.warn( 'THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset.' );
|
|
1124
|
-
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
console.warn( 'THREE.BufferGeometry: .addDrawCall() is now .addGroup().' );
|
|
1128
|
-
this.addGroup( start, count );
|
|
1129
|
-
|
|
1130
|
-
};
|
|
1131
|
-
|
|
1132
|
-
BufferGeometry.prototype.clearDrawCalls = function () {
|
|
1133
|
-
|
|
1134
|
-
console.warn( 'THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups().' );
|
|
1135
|
-
this.clearGroups();
|
|
1136
|
-
|
|
1137
|
-
};
|
|
1138
|
-
|
|
1139
|
-
BufferGeometry.prototype.computeOffsets = function () {
|
|
1140
|
-
|
|
1141
|
-
console.warn( 'THREE.BufferGeometry: .computeOffsets() has been removed.' );
|
|
1142
|
-
|
|
1143
|
-
};
|
|
1144
|
-
|
|
1145
|
-
BufferGeometry.prototype.removeAttribute = function ( name ) {
|
|
1146
|
-
|
|
1147
|
-
console.warn( 'THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute().' );
|
|
1148
|
-
|
|
1149
|
-
return this.deleteAttribute( name );
|
|
1150
|
-
|
|
1151
|
-
};
|
|
1152
|
-
|
|
1153
|
-
BufferGeometry.prototype.applyMatrix = function ( matrix ) {
|
|
1154
|
-
|
|
1155
|
-
console.warn( 'THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4().' );
|
|
1156
|
-
return this.applyMatrix4( matrix );
|
|
1157
|
-
|
|
1158
|
-
};
|
|
1159
|
-
|
|
1160
|
-
Object.defineProperties( BufferGeometry.prototype, {
|
|
1161
|
-
|
|
1162
|
-
drawcalls: {
|
|
1163
|
-
get: function () {
|
|
1164
|
-
|
|
1165
|
-
console.error( 'THREE.BufferGeometry: .drawcalls has been renamed to .groups.' );
|
|
1166
|
-
return this.groups;
|
|
1167
|
-
|
|
1168
|
-
}
|
|
1169
|
-
},
|
|
1170
|
-
offsets: {
|
|
1171
|
-
get: function () {
|
|
1172
|
-
|
|
1173
|
-
console.warn( 'THREE.BufferGeometry: .offsets has been renamed to .groups.' );
|
|
1174
|
-
return this.groups;
|
|
1175
|
-
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
} );
|
|
1180
|
-
|
|
1181
|
-
InterleavedBuffer.prototype.setDynamic = function ( value ) {
|
|
1182
|
-
|
|
1183
|
-
console.warn( 'THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead.' );
|
|
1184
|
-
this.setUsage( value === true ? DynamicDrawUsage : StaticDrawUsage );
|
|
1185
|
-
return this;
|
|
1186
|
-
|
|
1187
|
-
};
|
|
1188
|
-
|
|
1189
|
-
InterleavedBuffer.prototype.setArray = function ( /* array */ ) {
|
|
1190
|
-
|
|
1191
|
-
console.error( 'THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers' );
|
|
1192
|
-
|
|
1193
|
-
};
|
|
1194
|
-
|
|
1195
|
-
//
|
|
1196
|
-
|
|
1197
|
-
ExtrudeGeometry.prototype.getArrays = function () {
|
|
1198
|
-
|
|
1199
|
-
console.error( 'THREE.ExtrudeGeometry: .getArrays() has been removed.' );
|
|
1200
|
-
|
|
1201
|
-
};
|
|
1202
|
-
|
|
1203
|
-
ExtrudeGeometry.prototype.addShapeList = function () {
|
|
1204
|
-
|
|
1205
|
-
console.error( 'THREE.ExtrudeGeometry: .addShapeList() has been removed.' );
|
|
1206
|
-
|
|
1207
|
-
};
|
|
1208
|
-
|
|
1209
|
-
ExtrudeGeometry.prototype.addShape = function () {
|
|
1210
|
-
|
|
1211
|
-
console.error( 'THREE.ExtrudeGeometry: .addShape() has been removed.' );
|
|
1212
|
-
|
|
1213
|
-
};
|
|
1214
|
-
|
|
1215
|
-
//
|
|
1216
|
-
|
|
1217
|
-
Scene.prototype.dispose = function () {
|
|
1218
|
-
|
|
1219
|
-
console.error( 'THREE.Scene: .dispose() has been removed.' );
|
|
1220
|
-
|
|
1221
|
-
};
|
|
1222
|
-
|
|
1223
|
-
//
|
|
1224
|
-
|
|
1225
|
-
Uniform.prototype.onUpdate = function () {
|
|
1226
|
-
|
|
1227
|
-
console.warn( 'THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead.' );
|
|
1228
|
-
return this;
|
|
1229
|
-
|
|
1230
|
-
};
|
|
1231
|
-
|
|
1232
|
-
//
|
|
1233
|
-
|
|
1234
|
-
Object.defineProperties( Material.prototype, {
|
|
1235
|
-
|
|
1236
|
-
wrapAround: {
|
|
1237
|
-
get: function () {
|
|
1238
|
-
|
|
1239
|
-
console.warn( 'THREE.Material: .wrapAround has been removed.' );
|
|
1240
|
-
|
|
1241
|
-
},
|
|
1242
|
-
set: function () {
|
|
1243
|
-
|
|
1244
|
-
console.warn( 'THREE.Material: .wrapAround has been removed.' );
|
|
1245
|
-
|
|
1246
|
-
}
|
|
1247
|
-
},
|
|
1248
|
-
|
|
1249
|
-
overdraw: {
|
|
1250
|
-
get: function () {
|
|
1251
|
-
|
|
1252
|
-
console.warn( 'THREE.Material: .overdraw has been removed.' );
|
|
1253
|
-
|
|
1254
|
-
},
|
|
1255
|
-
set: function () {
|
|
1256
|
-
|
|
1257
|
-
console.warn( 'THREE.Material: .overdraw has been removed.' );
|
|
1258
|
-
|
|
1259
|
-
}
|
|
1260
|
-
},
|
|
1261
|
-
|
|
1262
|
-
wrapRGB: {
|
|
1263
|
-
get: function () {
|
|
1264
|
-
|
|
1265
|
-
console.warn( 'THREE.Material: .wrapRGB has been removed.' );
|
|
1266
|
-
return new Color();
|
|
1267
|
-
|
|
1268
|
-
}
|
|
1269
|
-
},
|
|
1270
|
-
|
|
1271
|
-
shading: {
|
|
1272
|
-
get: function () {
|
|
1273
|
-
|
|
1274
|
-
console.error( 'THREE.' + this.type + ': .shading has been removed. Use the boolean .flatShading instead.' );
|
|
1275
|
-
|
|
1276
|
-
},
|
|
1277
|
-
set: function ( value ) {
|
|
1278
|
-
|
|
1279
|
-
console.warn( 'THREE.' + this.type + ': .shading has been removed. Use the boolean .flatShading instead.' );
|
|
1280
|
-
this.flatShading = ( value === FlatShading );
|
|
1281
|
-
|
|
1282
|
-
}
|
|
1283
|
-
},
|
|
1284
|
-
|
|
1285
|
-
stencilMask: {
|
|
1286
|
-
get: function () {
|
|
1287
|
-
|
|
1288
|
-
console.warn( 'THREE.' + this.type + ': .stencilMask has been removed. Use .stencilFuncMask instead.' );
|
|
1289
|
-
return this.stencilFuncMask;
|
|
1290
|
-
|
|
1291
|
-
},
|
|
1292
|
-
set: function ( value ) {
|
|
1293
|
-
|
|
1294
|
-
console.warn( 'THREE.' + this.type + ': .stencilMask has been removed. Use .stencilFuncMask instead.' );
|
|
1295
|
-
this.stencilFuncMask = value;
|
|
1296
|
-
|
|
1297
|
-
}
|
|
1298
|
-
},
|
|
1299
|
-
|
|
1300
|
-
vertexTangents: {
|
|
1301
|
-
get: function () {
|
|
1302
|
-
|
|
1303
|
-
console.warn( 'THREE.' + this.type + ': .vertexTangents has been removed.' );
|
|
1304
|
-
|
|
1305
|
-
},
|
|
1306
|
-
set: function () {
|
|
1307
|
-
|
|
1308
|
-
console.warn( 'THREE.' + this.type + ': .vertexTangents has been removed.' );
|
|
1309
|
-
|
|
1310
|
-
}
|
|
1311
|
-
},
|
|
1312
|
-
|
|
1313
|
-
} );
|
|
1314
|
-
|
|
1315
|
-
Object.defineProperties( ShaderMaterial.prototype, {
|
|
1316
|
-
|
|
1317
|
-
derivatives: {
|
|
1318
|
-
get: function () {
|
|
1319
|
-
|
|
1320
|
-
console.warn( 'THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives.' );
|
|
1321
|
-
return this.extensions.derivatives;
|
|
1322
|
-
|
|
1323
|
-
},
|
|
1324
|
-
set: function ( value ) {
|
|
1325
|
-
|
|
1326
|
-
console.warn( 'THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives.' );
|
|
1327
|
-
this.extensions.derivatives = value;
|
|
1328
|
-
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
} );
|
|
1333
|
-
|
|
1334
|
-
//
|
|
1335
|
-
|
|
1336
|
-
WebGLRenderer.prototype.clearTarget = function ( renderTarget, color, depth, stencil ) {
|
|
1337
|
-
|
|
1338
|
-
console.warn( 'THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead.' );
|
|
1339
|
-
this.setRenderTarget( renderTarget );
|
|
1340
|
-
this.clear( color, depth, stencil );
|
|
1341
|
-
|
|
1342
|
-
};
|
|
1343
|
-
|
|
1344
|
-
WebGLRenderer.prototype.animate = function ( callback ) {
|
|
1345
|
-
|
|
1346
|
-
console.warn( 'THREE.WebGLRenderer: .animate() is now .setAnimationLoop().' );
|
|
1347
|
-
this.setAnimationLoop( callback );
|
|
1348
|
-
|
|
1349
|
-
};
|
|
1350
|
-
|
|
1351
|
-
WebGLRenderer.prototype.getCurrentRenderTarget = function () {
|
|
1352
|
-
|
|
1353
|
-
console.warn( 'THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget().' );
|
|
1354
|
-
return this.getRenderTarget();
|
|
1355
|
-
|
|
1356
|
-
};
|
|
1357
|
-
|
|
1358
|
-
WebGLRenderer.prototype.getMaxAnisotropy = function () {
|
|
1359
|
-
|
|
1360
|
-
console.warn( 'THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy().' );
|
|
1361
|
-
return this.capabilities.getMaxAnisotropy();
|
|
1362
|
-
|
|
1363
|
-
};
|
|
1364
|
-
|
|
1365
|
-
WebGLRenderer.prototype.getPrecision = function () {
|
|
1366
|
-
|
|
1367
|
-
console.warn( 'THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision.' );
|
|
1368
|
-
return this.capabilities.precision;
|
|
1369
|
-
|
|
1370
|
-
};
|
|
1371
|
-
|
|
1372
|
-
WebGLRenderer.prototype.resetGLState = function () {
|
|
1373
|
-
|
|
1374
|
-
console.warn( 'THREE.WebGLRenderer: .resetGLState() is now .state.reset().' );
|
|
1375
|
-
return this.state.reset();
|
|
1376
|
-
|
|
1377
|
-
};
|
|
1378
|
-
|
|
1379
|
-
WebGLRenderer.prototype.supportsFloatTextures = function () {
|
|
1380
|
-
|
|
1381
|
-
console.warn( 'THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( \'OES_texture_float\' ).' );
|
|
1382
|
-
return this.extensions.get( 'OES_texture_float' );
|
|
1383
|
-
|
|
1384
|
-
};
|
|
1385
|
-
|
|
1386
|
-
WebGLRenderer.prototype.supportsHalfFloatTextures = function () {
|
|
1387
|
-
|
|
1388
|
-
console.warn( 'THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( \'OES_texture_half_float\' ).' );
|
|
1389
|
-
return this.extensions.get( 'OES_texture_half_float' );
|
|
1390
|
-
|
|
1391
|
-
};
|
|
1392
|
-
|
|
1393
|
-
WebGLRenderer.prototype.supportsStandardDerivatives = function () {
|
|
1394
|
-
|
|
1395
|
-
console.warn( 'THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( \'OES_standard_derivatives\' ).' );
|
|
1396
|
-
return this.extensions.get( 'OES_standard_derivatives' );
|
|
1397
|
-
|
|
1398
|
-
};
|
|
1399
|
-
|
|
1400
|
-
WebGLRenderer.prototype.supportsCompressedTextureS3TC = function () {
|
|
1401
|
-
|
|
1402
|
-
console.warn( 'THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( \'WEBGL_compressed_texture_s3tc\' ).' );
|
|
1403
|
-
return this.extensions.get( 'WEBGL_compressed_texture_s3tc' );
|
|
1404
|
-
|
|
1405
|
-
};
|
|
1406
|
-
|
|
1407
|
-
WebGLRenderer.prototype.supportsCompressedTexturePVRTC = function () {
|
|
1408
|
-
|
|
1409
|
-
console.warn( 'THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( \'WEBGL_compressed_texture_pvrtc\' ).' );
|
|
1410
|
-
return this.extensions.get( 'WEBGL_compressed_texture_pvrtc' );
|
|
1411
|
-
|
|
1412
|
-
};
|
|
1413
|
-
|
|
1414
|
-
WebGLRenderer.prototype.supportsBlendMinMax = function () {
|
|
1415
|
-
|
|
1416
|
-
console.warn( 'THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( \'EXT_blend_minmax\' ).' );
|
|
1417
|
-
return this.extensions.get( 'EXT_blend_minmax' );
|
|
1418
|
-
|
|
1419
|
-
};
|
|
1420
|
-
|
|
1421
|
-
WebGLRenderer.prototype.supportsVertexTextures = function () {
|
|
1422
|
-
|
|
1423
|
-
console.warn( 'THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures.' );
|
|
1424
|
-
return this.capabilities.vertexTextures;
|
|
1425
|
-
|
|
1426
|
-
};
|
|
1427
|
-
|
|
1428
|
-
WebGLRenderer.prototype.supportsInstancedArrays = function () {
|
|
1429
|
-
|
|
1430
|
-
console.warn( 'THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( \'ANGLE_instanced_arrays\' ).' );
|
|
1431
|
-
return this.extensions.get( 'ANGLE_instanced_arrays' );
|
|
1432
|
-
|
|
1433
|
-
};
|
|
1434
|
-
|
|
1435
|
-
WebGLRenderer.prototype.enableScissorTest = function ( boolean ) {
|
|
1436
|
-
|
|
1437
|
-
console.warn( 'THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest().' );
|
|
1438
|
-
this.setScissorTest( boolean );
|
|
1439
|
-
|
|
1440
|
-
};
|
|
1441
|
-
|
|
1442
|
-
WebGLRenderer.prototype.initMaterial = function () {
|
|
1443
|
-
|
|
1444
|
-
console.warn( 'THREE.WebGLRenderer: .initMaterial() has been removed.' );
|
|
1445
|
-
|
|
1446
|
-
};
|
|
1447
|
-
|
|
1448
|
-
WebGLRenderer.prototype.addPrePlugin = function () {
|
|
1449
|
-
|
|
1450
|
-
console.warn( 'THREE.WebGLRenderer: .addPrePlugin() has been removed.' );
|
|
1451
|
-
|
|
1452
|
-
};
|
|
1453
|
-
|
|
1454
|
-
WebGLRenderer.prototype.addPostPlugin = function () {
|
|
1455
|
-
|
|
1456
|
-
console.warn( 'THREE.WebGLRenderer: .addPostPlugin() has been removed.' );
|
|
1457
|
-
|
|
1458
|
-
};
|
|
1459
|
-
|
|
1460
|
-
WebGLRenderer.prototype.updateShadowMap = function () {
|
|
1461
|
-
|
|
1462
|
-
console.warn( 'THREE.WebGLRenderer: .updateShadowMap() has been removed.' );
|
|
1463
|
-
|
|
1464
|
-
};
|
|
1465
|
-
|
|
1466
|
-
WebGLRenderer.prototype.setFaceCulling = function () {
|
|
1467
|
-
|
|
1468
|
-
console.warn( 'THREE.WebGLRenderer: .setFaceCulling() has been removed.' );
|
|
1469
|
-
|
|
1470
|
-
};
|
|
1471
|
-
|
|
1472
|
-
WebGLRenderer.prototype.setTexture = function () {
|
|
1473
|
-
|
|
1474
|
-
console.warn( 'THREE.WebGLRenderer: .setTexture() has been removed.' );
|
|
1475
|
-
|
|
1476
|
-
};
|
|
1477
|
-
|
|
1478
|
-
WebGLRenderer.prototype.setTextureCube = function () {
|
|
1479
|
-
|
|
1480
|
-
console.warn( 'THREE.WebGLRenderer: .setTextureCube() has been removed.' );
|
|
1481
|
-
|
|
1482
|
-
};
|
|
1483
|
-
|
|
1484
|
-
WebGLRenderer.prototype.getActiveMipMapLevel = function () {
|
|
1485
|
-
|
|
1486
|
-
console.warn( 'THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel().' );
|
|
1487
|
-
return this.getActiveMipmapLevel();
|
|
1488
|
-
|
|
1489
|
-
};
|
|
1490
|
-
|
|
1491
|
-
Object.defineProperties( WebGLRenderer.prototype, {
|
|
1492
|
-
|
|
1493
|
-
shadowMapEnabled: {
|
|
1494
|
-
get: function () {
|
|
1495
|
-
|
|
1496
|
-
return this.shadowMap.enabled;
|
|
1497
|
-
|
|
1498
|
-
},
|
|
1499
|
-
set: function ( value ) {
|
|
1500
|
-
|
|
1501
|
-
console.warn( 'THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled.' );
|
|
1502
|
-
this.shadowMap.enabled = value;
|
|
1503
|
-
|
|
1504
|
-
}
|
|
1505
|
-
},
|
|
1506
|
-
shadowMapType: {
|
|
1507
|
-
get: function () {
|
|
1508
|
-
|
|
1509
|
-
return this.shadowMap.type;
|
|
1510
|
-
|
|
1511
|
-
},
|
|
1512
|
-
set: function ( value ) {
|
|
1513
|
-
|
|
1514
|
-
console.warn( 'THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type.' );
|
|
1515
|
-
this.shadowMap.type = value;
|
|
1516
|
-
|
|
1517
|
-
}
|
|
1518
|
-
},
|
|
1519
|
-
shadowMapCullFace: {
|
|
1520
|
-
get: function () {
|
|
1521
|
-
|
|
1522
|
-
console.warn( 'THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.' );
|
|
1523
|
-
return undefined;
|
|
1524
|
-
|
|
1525
|
-
},
|
|
1526
|
-
set: function ( /* value */ ) {
|
|
1527
|
-
|
|
1528
|
-
console.warn( 'THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.' );
|
|
1529
|
-
|
|
1530
|
-
}
|
|
1531
|
-
},
|
|
1532
|
-
context: {
|
|
1533
|
-
get: function () {
|
|
1534
|
-
|
|
1535
|
-
console.warn( 'THREE.WebGLRenderer: .context has been removed. Use .getContext() instead.' );
|
|
1536
|
-
return this.getContext();
|
|
1537
|
-
|
|
1538
|
-
}
|
|
1539
|
-
},
|
|
1540
|
-
vr: {
|
|
1541
|
-
get: function () {
|
|
1542
|
-
|
|
1543
|
-
console.warn( 'THREE.WebGLRenderer: .vr has been renamed to .xr' );
|
|
1544
|
-
return this.xr;
|
|
1545
|
-
|
|
1546
|
-
}
|
|
1547
|
-
},
|
|
1548
|
-
gammaInput: {
|
|
1549
|
-
get: function () {
|
|
1550
|
-
|
|
1551
|
-
console.warn( 'THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.' );
|
|
1552
|
-
return false;
|
|
1553
|
-
|
|
1554
|
-
},
|
|
1555
|
-
set: function () {
|
|
1556
|
-
|
|
1557
|
-
console.warn( 'THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.' );
|
|
1558
|
-
|
|
1559
|
-
}
|
|
1560
|
-
},
|
|
1561
|
-
gammaOutput: {
|
|
1562
|
-
get: function () {
|
|
1563
|
-
|
|
1564
|
-
console.warn( 'THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead.' );
|
|
1565
|
-
return false;
|
|
1566
|
-
|
|
1567
|
-
},
|
|
1568
|
-
set: function ( value ) {
|
|
1569
|
-
|
|
1570
|
-
console.warn( 'THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead.' );
|
|
1571
|
-
this.outputEncoding = ( value === true ) ? sRGBEncoding : LinearEncoding;
|
|
1572
|
-
|
|
1573
|
-
}
|
|
1574
|
-
},
|
|
1575
|
-
toneMappingWhitePoint: {
|
|
1576
|
-
get: function () {
|
|
1577
|
-
|
|
1578
|
-
console.warn( 'THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.' );
|
|
1579
|
-
return 1.0;
|
|
1580
|
-
|
|
1581
|
-
},
|
|
1582
|
-
set: function () {
|
|
1583
|
-
|
|
1584
|
-
console.warn( 'THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.' );
|
|
1585
|
-
|
|
1586
|
-
}
|
|
1587
|
-
},
|
|
1588
|
-
gammaFactor: {
|
|
1589
|
-
get: function () {
|
|
1590
|
-
|
|
1591
|
-
console.warn( 'THREE.WebGLRenderer: .gammaFactor has been removed.' );
|
|
1592
|
-
return 2;
|
|
1593
|
-
|
|
1594
|
-
},
|
|
1595
|
-
set: function () {
|
|
1596
|
-
|
|
1597
|
-
console.warn( 'THREE.WebGLRenderer: .gammaFactor has been removed.' );
|
|
1598
|
-
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
} );
|
|
1602
|
-
|
|
1603
|
-
Object.defineProperties( WebGLShadowMap.prototype, {
|
|
1604
|
-
|
|
1605
|
-
cullFace: {
|
|
1606
|
-
get: function () {
|
|
1607
|
-
|
|
1608
|
-
console.warn( 'THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.' );
|
|
1609
|
-
return undefined;
|
|
1610
|
-
|
|
1611
|
-
},
|
|
1612
|
-
set: function ( /* cullFace */ ) {
|
|
1613
|
-
|
|
1614
|
-
console.warn( 'THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.' );
|
|
1615
|
-
|
|
1616
|
-
}
|
|
1617
|
-
},
|
|
1618
|
-
renderReverseSided: {
|
|
1619
|
-
get: function () {
|
|
1620
|
-
|
|
1621
|
-
console.warn( 'THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.' );
|
|
1622
|
-
return undefined;
|
|
1623
|
-
|
|
1624
|
-
},
|
|
1625
|
-
set: function () {
|
|
1626
|
-
|
|
1627
|
-
console.warn( 'THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.' );
|
|
1628
|
-
|
|
1629
|
-
}
|
|
1630
|
-
},
|
|
1631
|
-
renderSingleSided: {
|
|
1632
|
-
get: function () {
|
|
1633
|
-
|
|
1634
|
-
console.warn( 'THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.' );
|
|
1635
|
-
return undefined;
|
|
1636
|
-
|
|
1637
|
-
},
|
|
1638
|
-
set: function () {
|
|
1639
|
-
|
|
1640
|
-
console.warn( 'THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.' );
|
|
1641
|
-
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
|
-
} );
|
|
1646
|
-
|
|
1647
|
-
export function WebGLRenderTargetCube( width, height, options ) {
|
|
1648
|
-
|
|
1649
|
-
console.warn( 'THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options ).' );
|
|
1650
|
-
return new WebGLCubeRenderTarget( width, options );
|
|
1651
|
-
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
//
|
|
1655
|
-
|
|
1656
|
-
Object.defineProperties( WebGLRenderTarget.prototype, {
|
|
1657
|
-
|
|
1658
|
-
wrapS: {
|
|
1659
|
-
get: function () {
|
|
1660
|
-
|
|
1661
|
-
console.warn( 'THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS.' );
|
|
1662
|
-
return this.texture.wrapS;
|
|
1663
|
-
|
|
1664
|
-
},
|
|
1665
|
-
set: function ( value ) {
|
|
1666
|
-
|
|
1667
|
-
console.warn( 'THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS.' );
|
|
1668
|
-
this.texture.wrapS = value;
|
|
1669
|
-
|
|
1670
|
-
}
|
|
1671
|
-
},
|
|
1672
|
-
wrapT: {
|
|
1673
|
-
get: function () {
|
|
1674
|
-
|
|
1675
|
-
console.warn( 'THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT.' );
|
|
1676
|
-
return this.texture.wrapT;
|
|
1677
|
-
|
|
1678
|
-
},
|
|
1679
|
-
set: function ( value ) {
|
|
1680
|
-
|
|
1681
|
-
console.warn( 'THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT.' );
|
|
1682
|
-
this.texture.wrapT = value;
|
|
1683
|
-
|
|
1684
|
-
}
|
|
1685
|
-
},
|
|
1686
|
-
magFilter: {
|
|
1687
|
-
get: function () {
|
|
1688
|
-
|
|
1689
|
-
console.warn( 'THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter.' );
|
|
1690
|
-
return this.texture.magFilter;
|
|
1691
|
-
|
|
1692
|
-
},
|
|
1693
|
-
set: function ( value ) {
|
|
1694
|
-
|
|
1695
|
-
console.warn( 'THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter.' );
|
|
1696
|
-
this.texture.magFilter = value;
|
|
1697
|
-
|
|
1698
|
-
}
|
|
1699
|
-
},
|
|
1700
|
-
minFilter: {
|
|
1701
|
-
get: function () {
|
|
1702
|
-
|
|
1703
|
-
console.warn( 'THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter.' );
|
|
1704
|
-
return this.texture.minFilter;
|
|
1705
|
-
|
|
1706
|
-
},
|
|
1707
|
-
set: function ( value ) {
|
|
1708
|
-
|
|
1709
|
-
console.warn( 'THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter.' );
|
|
1710
|
-
this.texture.minFilter = value;
|
|
1711
|
-
|
|
1712
|
-
}
|
|
1713
|
-
},
|
|
1714
|
-
anisotropy: {
|
|
1715
|
-
get: function () {
|
|
1716
|
-
|
|
1717
|
-
console.warn( 'THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy.' );
|
|
1718
|
-
return this.texture.anisotropy;
|
|
1719
|
-
|
|
1720
|
-
},
|
|
1721
|
-
set: function ( value ) {
|
|
1722
|
-
|
|
1723
|
-
console.warn( 'THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy.' );
|
|
1724
|
-
this.texture.anisotropy = value;
|
|
1725
|
-
|
|
1726
|
-
}
|
|
1727
|
-
},
|
|
1728
|
-
offset: {
|
|
1729
|
-
get: function () {
|
|
1730
|
-
|
|
1731
|
-
console.warn( 'THREE.WebGLRenderTarget: .offset is now .texture.offset.' );
|
|
1732
|
-
return this.texture.offset;
|
|
1733
|
-
|
|
1734
|
-
},
|
|
1735
|
-
set: function ( value ) {
|
|
1736
|
-
|
|
1737
|
-
console.warn( 'THREE.WebGLRenderTarget: .offset is now .texture.offset.' );
|
|
1738
|
-
this.texture.offset = value;
|
|
1739
|
-
|
|
1740
|
-
}
|
|
1741
|
-
},
|
|
1742
|
-
repeat: {
|
|
1743
|
-
get: function () {
|
|
1744
|
-
|
|
1745
|
-
console.warn( 'THREE.WebGLRenderTarget: .repeat is now .texture.repeat.' );
|
|
1746
|
-
return this.texture.repeat;
|
|
1747
|
-
|
|
1748
|
-
},
|
|
1749
|
-
set: function ( value ) {
|
|
1750
|
-
|
|
1751
|
-
console.warn( 'THREE.WebGLRenderTarget: .repeat is now .texture.repeat.' );
|
|
1752
|
-
this.texture.repeat = value;
|
|
1753
|
-
|
|
1754
|
-
}
|
|
1755
|
-
},
|
|
1756
|
-
format: {
|
|
1757
|
-
get: function () {
|
|
1758
|
-
|
|
1759
|
-
console.warn( 'THREE.WebGLRenderTarget: .format is now .texture.format.' );
|
|
1760
|
-
return this.texture.format;
|
|
1761
|
-
|
|
1762
|
-
},
|
|
1763
|
-
set: function ( value ) {
|
|
1764
|
-
|
|
1765
|
-
console.warn( 'THREE.WebGLRenderTarget: .format is now .texture.format.' );
|
|
1766
|
-
this.texture.format = value;
|
|
1767
|
-
|
|
1768
|
-
}
|
|
1769
|
-
},
|
|
1770
|
-
type: {
|
|
1771
|
-
get: function () {
|
|
1772
|
-
|
|
1773
|
-
console.warn( 'THREE.WebGLRenderTarget: .type is now .texture.type.' );
|
|
1774
|
-
return this.texture.type;
|
|
1775
|
-
|
|
1776
|
-
},
|
|
1777
|
-
set: function ( value ) {
|
|
1778
|
-
|
|
1779
|
-
console.warn( 'THREE.WebGLRenderTarget: .type is now .texture.type.' );
|
|
1780
|
-
this.texture.type = value;
|
|
1781
|
-
|
|
1782
|
-
}
|
|
1783
|
-
},
|
|
1784
|
-
generateMipmaps: {
|
|
1785
|
-
get: function () {
|
|
1786
|
-
|
|
1787
|
-
console.warn( 'THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps.' );
|
|
1788
|
-
return this.texture.generateMipmaps;
|
|
1789
|
-
|
|
1790
|
-
},
|
|
1791
|
-
set: function ( value ) {
|
|
1792
|
-
|
|
1793
|
-
console.warn( 'THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps.' );
|
|
1794
|
-
this.texture.generateMipmaps = value;
|
|
1795
|
-
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
} );
|
|
1800
|
-
|
|
1801
|
-
//
|
|
1802
|
-
|
|
1803
|
-
Audio.prototype.load = function ( file ) {
|
|
1804
|
-
|
|
1805
|
-
console.warn( 'THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.' );
|
|
1806
|
-
const scope = this;
|
|
1807
|
-
const audioLoader = new AudioLoader();
|
|
1808
|
-
audioLoader.load( file, function ( buffer ) {
|
|
1809
|
-
|
|
1810
|
-
scope.setBuffer( buffer );
|
|
1811
|
-
|
|
1812
|
-
} );
|
|
1813
|
-
return this;
|
|
1814
|
-
|
|
1815
|
-
};
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
AudioAnalyser.prototype.getData = function () {
|
|
1819
|
-
|
|
1820
|
-
console.warn( 'THREE.AudioAnalyser: .getData() is now .getFrequencyData().' );
|
|
1821
|
-
return this.getFrequencyData();
|
|
1822
|
-
|
|
1823
|
-
};
|
|
1824
|
-
|
|
1825
|
-
//
|
|
1826
|
-
|
|
1827
|
-
CubeCamera.prototype.updateCubeMap = function ( renderer, scene ) {
|
|
1828
|
-
|
|
1829
|
-
console.warn( 'THREE.CubeCamera: .updateCubeMap() is now .update().' );
|
|
1830
|
-
return this.update( renderer, scene );
|
|
1831
|
-
|
|
1832
|
-
};
|
|
1833
|
-
|
|
1834
|
-
CubeCamera.prototype.clear = function ( renderer, color, depth, stencil ) {
|
|
1835
|
-
|
|
1836
|
-
console.warn( 'THREE.CubeCamera: .clear() is now .renderTarget.clear().' );
|
|
1837
|
-
return this.renderTarget.clear( renderer, color, depth, stencil );
|
|
1838
|
-
|
|
1839
|
-
};
|
|
1840
|
-
|
|
1841
|
-
ImageUtils.crossOrigin = undefined;
|
|
1842
|
-
|
|
1843
|
-
ImageUtils.loadTexture = function ( url, mapping, onLoad, onError ) {
|
|
1844
|
-
|
|
1845
|
-
console.warn( 'THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.' );
|
|
1846
|
-
|
|
1847
|
-
const loader = new TextureLoader();
|
|
1848
|
-
loader.setCrossOrigin( this.crossOrigin );
|
|
1849
|
-
|
|
1850
|
-
const texture = loader.load( url, onLoad, undefined, onError );
|
|
1851
|
-
|
|
1852
|
-
if ( mapping ) texture.mapping = mapping;
|
|
1853
|
-
|
|
1854
|
-
return texture;
|
|
1855
|
-
|
|
1856
|
-
};
|
|
1857
|
-
|
|
1858
|
-
ImageUtils.loadTextureCube = function ( urls, mapping, onLoad, onError ) {
|
|
1859
|
-
|
|
1860
|
-
console.warn( 'THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.' );
|
|
1861
|
-
|
|
1862
|
-
const loader = new CubeTextureLoader();
|
|
1863
|
-
loader.setCrossOrigin( this.crossOrigin );
|
|
1864
|
-
|
|
1865
|
-
const texture = loader.load( urls, onLoad, undefined, onError );
|
|
1866
|
-
|
|
1867
|
-
if ( mapping ) texture.mapping = mapping;
|
|
1868
|
-
|
|
1869
|
-
return texture;
|
|
1870
|
-
|
|
1871
|
-
};
|
|
1872
|
-
|
|
1873
|
-
ImageUtils.loadCompressedTexture = function () {
|
|
1874
|
-
|
|
1875
|
-
console.error( 'THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.' );
|
|
1876
|
-
|
|
1877
|
-
};
|
|
1878
|
-
|
|
1879
|
-
ImageUtils.loadCompressedTextureCube = function () {
|
|
1880
|
-
|
|
1881
|
-
console.error( 'THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.' );
|
|
1882
|
-
|
|
1883
|
-
};
|
|
1884
|
-
|
|
1885
|
-
//
|
|
1886
|
-
|
|
1887
|
-
export function CanvasRenderer() {
|
|
1888
|
-
|
|
1889
|
-
console.error( 'THREE.CanvasRenderer has been removed' );
|
|
1890
|
-
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1893
|
-
//
|
|
1894
|
-
|
|
1895
|
-
export function JSONLoader() {
|
|
1896
|
-
|
|
1897
|
-
console.error( 'THREE.JSONLoader has been removed.' );
|
|
1898
|
-
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1901
|
-
//
|
|
1902
|
-
|
|
1903
|
-
export const SceneUtils = {
|
|
1904
|
-
|
|
1905
|
-
createMultiMaterialObject: function ( /* geometry, materials */ ) {
|
|
1906
|
-
|
|
1907
|
-
console.error( 'THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js' );
|
|
1908
|
-
|
|
1909
|
-
},
|
|
1910
|
-
|
|
1911
|
-
detach: function ( /* child, parent, scene */ ) {
|
|
1912
|
-
|
|
1913
|
-
console.error( 'THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js' );
|
|
1914
|
-
|
|
1915
|
-
},
|
|
1916
|
-
|
|
1917
|
-
attach: function ( /* child, scene, parent */ ) {
|
|
1918
|
-
|
|
1919
|
-
console.error( 'THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js' );
|
|
1920
|
-
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
|
-
};
|
|
1924
|
-
|
|
1925
|
-
//
|
|
1926
|
-
|
|
1927
|
-
export function LensFlare() {
|
|
1928
|
-
|
|
1929
|
-
console.error( 'THREE.LensFlare has been moved to /examples/jsm/objects/Lensflare.js' );
|
|
1930
|
-
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
|
-
//
|
|
1934
|
-
|
|
1935
|
-
export function ParametricGeometry() {
|
|
1936
|
-
|
|
1937
|
-
console.error( 'THREE.ParametricGeometry has been moved to /examples/jsm/geometries/ParametricGeometry.js' );
|
|
1938
|
-
return new BufferGeometry();
|
|
1939
|
-
|
|
1940
|
-
}
|
|
1941
|
-
|
|
1942
|
-
export function TextGeometry() {
|
|
1943
|
-
|
|
1944
|
-
console.error( 'THREE.TextGeometry has been moved to /examples/jsm/geometries/TextGeometry.js' );
|
|
1945
|
-
return new BufferGeometry();
|
|
1946
|
-
|
|
1947
|
-
}
|
|
1948
|
-
|
|
1949
|
-
export function FontLoader() {
|
|
1950
|
-
|
|
1951
|
-
console.error( 'THREE.FontLoader has been moved to /examples/jsm/loaders/FontLoader.js' );
|
|
1952
|
-
|
|
1953
|
-
}
|
|
1954
|
-
|
|
1955
|
-
export function Font() {
|
|
1956
|
-
|
|
1957
|
-
console.error( 'THREE.Font has been moved to /examples/jsm/loaders/FontLoader.js' );
|
|
1958
|
-
|
|
1959
|
-
}
|
|
1960
|
-
|
|
1961
|
-
export function ImmediateRenderObject() {
|
|
1962
|
-
|
|
1963
|
-
console.error( 'THREE.ImmediateRenderObject has been removed.' );
|
|
1964
|
-
|
|
1965
|
-
}
|