@rings-webgpu/core 1.0.34 → 1.0.36

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.
@@ -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;
@@ -38239,7 +38240,7 @@ else if (typeof exports === 'object')
38239
38240
  const texturePath = StringUtil.normalizePath(
38240
38241
  this.baseUrl + matData.map_Kd
38241
38242
  );
38242
- const texture = Engine3D.res.getTexture(texturePath);
38243
+ const texture = Engine3D.res.getTexture(texturePath + OBJParser.cloudImageProcessParam);
38243
38244
  if (texture) {
38244
38245
  mat.baseMap = texture;
38245
38246
  }
@@ -42153,7 +42154,7 @@ else if (typeof exports === 'object')
42153
42154
  }
42154
42155
  }
42155
42156
 
42156
- const version = "1.0.33";
42157
+ const version = "1.0.35";
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
  }));
@@ -35,6 +35,7 @@ type Face = {
35
35
  };
36
36
  export declare class OBJParser extends ParserBase {
37
37
  static format: ParserFormat;
38
+ static cloudImageProcessParam: string;
38
39
  private textData;
39
40
  private source_vertices;
40
41
  private source_normals;
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rings-webgpu/core",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "description": "Rings webgpu Engine",
5
5
  "main": "index.js",
6
6
  "exports": {