@predy-js/render-interface 0.3.0-beta.197 → 0.3.0-beta.198

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/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  * Name: @predy-js/render-interface
3
3
  * Description: undefined
4
4
  * Author: undefined
5
- * Version: v0.3.0-beta.197
5
+ * Version: v0.3.0-beta.198
6
6
  */
7
7
 
8
8
  /******************************************************************************
@@ -3607,7 +3607,7 @@ var COMPRESSED_2D = 0; // uses a gl.compressedTexImage2D()
3607
3607
  var TEX_2D = 2; // uses a gl.texImage2D()
3608
3608
  //const TEX_3D = 3; // uses a gl.texImage3D()
3609
3609
  var KhronosTextureContainer = /** @class */ (function () {
3610
- function KhronosTextureContainer(arrayBuffer, facesExpected, baseOffset) {
3610
+ function KhronosTextureContainer(arrayBuffer, baseOffset) {
3611
3611
  if (baseOffset === void 0) { baseOffset = 0; }
3612
3612
  this.arrayBuffer = arrayBuffer;
3613
3613
  this.baseOffset = baseOffset;
@@ -3656,10 +3656,6 @@ var KhronosTextureContainer = /** @class */ (function () {
3656
3656
  //consoleWarn('texture arrays not currently supported');
3657
3657
  return;
3658
3658
  }
3659
- if (this.numberOfFaces !== facesExpected) {
3660
- //consoleWarn('number of faces expected' + facesExpected + ', but found ' + this.numberOfFaces);
3661
- return;
3662
- }
3663
3659
  // we now have a completely validated file, so could use existence of loadType as success
3664
3660
  // would need to make this more elaborate & adjust checks above to support more than one load type
3665
3661
  if (this.glType === 0) {
@@ -3696,7 +3692,7 @@ var KhronosTextureContainer = /** @class */ (function () {
3696
3692
  return KhronosTextureContainer;
3697
3693
  }());
3698
3694
  function getCompressedTextureOptions(data) {
3699
- var ktx = new KhronosTextureContainer(data, 1);
3695
+ var ktx = new KhronosTextureContainer(data);
3700
3696
  var useMipmaps = ktx.numberOfMipmapLevels >= Math.floor(Math.log2(Math.max(ktx.pixelWidth, ktx.pixelHeight)) + 1);
3701
3697
  return {
3702
3698
  sourceType: TextureSourceType.compressed,
@@ -5893,7 +5889,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5893
5889
  return MarsSharedGeometry;
5894
5890
  }(MarsGeometry));
5895
5891
 
5896
- consoleLog('version: ' + "0.3.0-beta.197");
5892
+ consoleLog('version: ' + "0.3.0-beta.198");
5897
5893
  var ModuleMsg = 'RI Package: @predy-js/render-interface';
5898
5894
 
5899
5895
  var RI = /*#__PURE__*/Object.freeze({