@crystaldesign/real-time-viewer 24.10.0-rc.3 → 24.11.0-beta.2

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.
@@ -2066,9 +2066,6 @@ var customMat = /*#__PURE__*/function () {
2066
2066
  mat,
2067
2067
  res,
2068
2068
  parsedMat,
2069
- baseTexture,
2070
- mRTexture,
2071
- nTexture,
2072
2069
  found,
2073
2070
  _args = arguments;
2074
2071
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -2098,12 +2095,9 @@ var customMat = /*#__PURE__*/function () {
2098
2095
  res = _context.sent;
2099
2096
  parsedMat = PBRMetallicRoughnessMaterial.Parse(res, _customMat.scene, '');
2100
2097
  parsedMat.name = _customMat.name;
2101
- baseTexture = parsedMat.baseTexture;
2102
- mRTexture = parsedMat.metallicRoughnessTexture;
2103
- nTexture = parsedMat.normalTexture;
2104
- if (baseTexture) baseTexture._mimeType = baseTexture.url.endsWith('.jpg') ? 'image/jpeg' : 'image/png';
2105
- if (mRTexture) mRTexture._mimeType = mRTexture.url.endsWith('.jpg') ? 'image/jpeg' : 'image/png';
2106
- if (nTexture) nTexture._mimeType = nTexture.url.endsWith('.jpg') ? 'image/jpeg' : 'image/png';
2098
+ parsedMat.baseTexture._mimeType = 'image/jpeg';
2099
+ parsedMat.metallicRoughnessTexture._mimeType = 'image/jpeg';
2100
+ parsedMat.normalTexture._mimeType = 'image/jpeg';
2107
2101
  found = !!parsedMat.baseTexture;
2108
2102
  if (!found) LOG$1.error(new DivaError('MISSING_MATERIAL: could not get material ' + _customMat.name + ' for iln ' + _customMat.blob, {
2109
2103
  code: 'RTS_0002'
@@ -2120,8 +2114,8 @@ var customMat = /*#__PURE__*/function () {
2120
2114
  mat: parsedMat,
2121
2115
  found: true
2122
2116
  });
2123
- case 29:
2124
- _context.prev = 29;
2117
+ case 26:
2118
+ _context.prev = 26;
2125
2119
  _context.t0 = _context["catch"](8);
2126
2120
  if (setDataRow) useUtilStoreContext().setAnalyzeDataRow({
2127
2121
  type: 'MAT',
@@ -2131,16 +2125,16 @@ var customMat = /*#__PURE__*/function () {
2131
2125
  path: _customMat.blob,
2132
2126
  sizeMb: 0
2133
2127
  });
2134
- case 32:
2128
+ case 29:
2135
2129
  return _context.abrupt("return", {
2136
2130
  mat: new PBRMetallicRoughnessMaterial(_customMat.name, _customMat.scene),
2137
2131
  found: true
2138
2132
  });
2139
- case 33:
2133
+ case 30:
2140
2134
  case "end":
2141
2135
  return _context.stop();
2142
2136
  }
2143
- }, _callee, null, [[8, 29]]);
2137
+ }, _callee, null, [[8, 26]]);
2144
2138
  }));
2145
2139
  return function customMat(_x) {
2146
2140
  return _ref.apply(this, arguments);
@@ -3091,7 +3085,7 @@ function useRealTimeRenderData (_ref) {
3091
3085
  sceneStore.hasRendered = true;
3092
3086
  }
3093
3087
 
3094
- // sceneStore.scene.debugLayer?.show();
3088
+ //sceneStore.scene.debugLayer?.show();
3095
3089
  sceneStore.scene.onAfterRenderObservable.add(onFirstFrame);
3096
3090
  LOG.successTransaction('BUILD_SCENE');
3097
3091
  case 33:
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/CustomMaterial/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,4BAA4B,EAAE,MAAM,4DAA4D,CAAC;AAI1G,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3C;AAGD,QAAA,MAAM,SAAS,cAAqB,cAAc,eAAc,OAAO,KAAU,QAAQ;IAAE,GAAG,EAAE,4BAA4B,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAsC7I,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/CustomMaterial/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,4BAA4B,EAAE,MAAM,4DAA4D,CAAC;AAI1G,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3C;AAGD,QAAA,MAAM,SAAS,cAAqB,cAAc,eAAc,OAAO,KAAU,QAAQ;IAAE,GAAG,EAAE,4BAA4B,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAkC7I,CAAC;AAEF,eAAe,SAAS,CAAC"}