three-base 2.0.113 → 2.0.114
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/ThreeBase.js +2 -2
- package/package.json +1 -1
- package/threeLoader.js +1 -2
package/ThreeBase.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: xiaosihan
|
|
3
3
|
* @Date: 2021-12-20 13:38:22
|
|
4
4
|
* @Last Modified by: xiaosihan
|
|
5
|
-
* @Last Modified time:
|
|
5
|
+
* @Last Modified time: 2025-01-17 06:49:44
|
|
6
6
|
*/
|
|
7
7
|
import { round } from "lodash";
|
|
8
8
|
import { AxesHelper, Box3, DepthFormat, DepthTexture, EventDispatcher, GridHelper, LinearFilter, MOUSE, NoBlending, NormalBlending, OrthographicCamera, PerspectiveCamera, RGBAFormat, ReinhardToneMapping, SRGBColorSpace, Scene, TOUCH, UnsignedShortType, Vector2, Vector3, WebGLRenderTarget, WebGLRenderer, } from "three";
|
|
@@ -81,7 +81,7 @@ export default class ThreeBase extends EventDispatcher {
|
|
|
81
81
|
renderer = (() => {
|
|
82
82
|
const renderer = new WebGLRenderer({
|
|
83
83
|
alpha: true,
|
|
84
|
-
antialias:
|
|
84
|
+
antialias: true,
|
|
85
85
|
precision: "highp",
|
|
86
86
|
logarithmicDepthBuffer: true,
|
|
87
87
|
preserveDrawingBuffer: true,
|
package/package.json
CHANGED
package/threeLoader.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: xiaosihan
|
|
3
3
|
* @Date: 2022-04-07 16:42:26
|
|
4
4
|
* @Last Modified by: xiaosihan
|
|
5
|
-
* @Last Modified time:
|
|
5
|
+
* @Last Modified time: 2025-01-15 20:34:19
|
|
6
6
|
*/
|
|
7
7
|
import { CanvasTexture, DefaultLoadingManager, EventDispatcher, Mesh, MeshStandardMaterial, RepeatWrapping, SRGBColorSpace, TextureLoader, VideoTexture, } from "three";
|
|
8
8
|
import { DRACOLoader } from "three/examples/jsm/loaders/DRACOLoader";
|
|
@@ -435,7 +435,6 @@ class ThreeLoader extends EventDispatcher {
|
|
|
435
435
|
const plyNeedRotationX = await new Promise(async (resolve) => {
|
|
436
436
|
// 读取文件内容
|
|
437
437
|
const res = await axios.get(modelurl);
|
|
438
|
-
debugger;
|
|
439
438
|
// if (res.match(/\b(Blender|binary_little_endian)\b/)) {
|
|
440
439
|
// resolve(true);
|
|
441
440
|
// } else {
|