@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.js 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
  'use strict';
@@ -3611,7 +3611,7 @@ var COMPRESSED_2D = 0; // uses a gl.compressedTexImage2D()
3611
3611
  var TEX_2D = 2; // uses a gl.texImage2D()
3612
3612
  //const TEX_3D = 3; // uses a gl.texImage3D()
3613
3613
  var KhronosTextureContainer = /** @class */ (function () {
3614
- function KhronosTextureContainer(arrayBuffer, facesExpected, baseOffset) {
3614
+ function KhronosTextureContainer(arrayBuffer, baseOffset) {
3615
3615
  if (baseOffset === void 0) { baseOffset = 0; }
3616
3616
  this.arrayBuffer = arrayBuffer;
3617
3617
  this.baseOffset = baseOffset;
@@ -3660,10 +3660,6 @@ var KhronosTextureContainer = /** @class */ (function () {
3660
3660
  //consoleWarn('texture arrays not currently supported');
3661
3661
  return;
3662
3662
  }
3663
- if (this.numberOfFaces !== facesExpected) {
3664
- //consoleWarn('number of faces expected' + facesExpected + ', but found ' + this.numberOfFaces);
3665
- return;
3666
- }
3667
3663
  // we now have a completely validated file, so could use existence of loadType as success
3668
3664
  // would need to make this more elaborate & adjust checks above to support more than one load type
3669
3665
  if (this.glType === 0) {
@@ -3700,7 +3696,7 @@ var KhronosTextureContainer = /** @class */ (function () {
3700
3696
  return KhronosTextureContainer;
3701
3697
  }());
3702
3698
  function getCompressedTextureOptions(data) {
3703
- var ktx = new KhronosTextureContainer(data, 1);
3699
+ var ktx = new KhronosTextureContainer(data);
3704
3700
  var useMipmaps = ktx.numberOfMipmapLevels >= Math.floor(Math.log2(Math.max(ktx.pixelWidth, ktx.pixelHeight)) + 1);
3705
3701
  return {
3706
3702
  sourceType: exports.TextureSourceType.compressed,
@@ -5897,7 +5893,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5897
5893
  return MarsSharedGeometry;
5898
5894
  }(MarsGeometry));
5899
5895
 
5900
- consoleLog('version: ' + "0.3.0-beta.197");
5896
+ consoleLog('version: ' + "0.3.0-beta.198");
5901
5897
  var ModuleMsg = 'RI Package: @predy-js/render-interface';
5902
5898
 
5903
5899
  var RI = /*#__PURE__*/Object.freeze({