@rings-webgpu/core 1.0.34 → 1.0.35
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/dist/rings.es.js +167 -167
- package/dist/rings.es.js.map +2 -2
- package/dist/rings.es.max.js +5 -3
- package/dist/rings.umd.js +171 -171
- package/dist/rings.umd.js.map +2 -2
- package/dist/rings.umd.max.js +5 -3
- package/dist/types/loader/parser/OBJParser.d.ts +1 -0
- package/dist/types/loader/parser/ply/PlyParser.d.ts +1 -0
- package/package.json +1 -1
package/dist/rings.umd.max.js
CHANGED
|
@@ -37780,6 +37780,7 @@ else if (typeof exports === 'object')
|
|
|
37780
37780
|
|
|
37781
37781
|
class OBJParser extends ParserBase {
|
|
37782
37782
|
static format = ParserFormat.TEXT;
|
|
37783
|
+
static cloudImageProcessParam = "";
|
|
37783
37784
|
textData = "";
|
|
37784
37785
|
source_vertices;
|
|
37785
37786
|
source_normals;
|
|
@@ -37946,7 +37947,7 @@ else if (typeof exports === 'object')
|
|
|
37946
37947
|
const texUrl = StringUtil.normalizePath(
|
|
37947
37948
|
this.baseUrl + mat2.textures[i]
|
|
37948
37949
|
);
|
|
37949
|
-
promiseList.push(Engine3D.res.loadTexture(texUrl).catch(
|
|
37950
|
+
promiseList.push(Engine3D.res.loadTexture(texUrl + OBJParser.cloudImageProcessParam).catch(
|
|
37950
37951
|
(error) => {
|
|
37951
37952
|
console.error(`Failed to load texture: ${texUrl}`, error);
|
|
37952
37953
|
return null;
|
|
@@ -42153,7 +42154,7 @@ else if (typeof exports === 'object')
|
|
|
42153
42154
|
}
|
|
42154
42155
|
}
|
|
42155
42156
|
|
|
42156
|
-
const version = "1.0.
|
|
42157
|
+
const version = "1.0.34";
|
|
42157
42158
|
|
|
42158
42159
|
class Engine3D {
|
|
42159
42160
|
/**
|
|
@@ -61861,6 +61862,7 @@ fn frag(){
|
|
|
61861
61862
|
|
|
61862
61863
|
class PlyParser extends ParserBase {
|
|
61863
61864
|
static format = ParserFormat.BIN;
|
|
61865
|
+
static cloudImageProcessParam = "";
|
|
61864
61866
|
async parseBuffer(buffer) {
|
|
61865
61867
|
const header = parsePlyHeader(buffer);
|
|
61866
61868
|
switch (header.mode) {
|
|
@@ -61931,7 +61933,7 @@ fn frag(){
|
|
|
61931
61933
|
const texturePath = StringUtil.normalizePath(
|
|
61932
61934
|
this.baseUrl + plyData.textureFiles[texnum]
|
|
61933
61935
|
);
|
|
61934
|
-
promiseList.push(Engine3D.res.loadTexture(texturePath).then((texture) => {
|
|
61936
|
+
promiseList.push(Engine3D.res.loadTexture(texturePath + PlyParser.cloudImageProcessParam).then((texture) => {
|
|
61935
61937
|
material.baseMap = texture;
|
|
61936
61938
|
materials.set(texnum, material);
|
|
61937
61939
|
}));
|
|
@@ -2,6 +2,7 @@ import { ParserBase } from "../ParserBase";
|
|
|
2
2
|
import { ParserFormat } from "../ParserFormat";
|
|
3
3
|
export declare class PlyParser extends ParserBase {
|
|
4
4
|
static format: ParserFormat;
|
|
5
|
+
static cloudImageProcessParam: string;
|
|
5
6
|
parseBuffer(buffer: ArrayBuffer): Promise<void>;
|
|
6
7
|
verification(): boolean;
|
|
7
8
|
}
|