@predy-js/render-interface 0.3.0-beta.197 → 0.3.0-beta.199
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 +5 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -9
- package/dist/index.mjs.map +1 -1
- package/dist/src/webgl/KhronosTextureContainer.d.ts +1 -1
- package/dist/statistic.js +1 -1
- package/package.json +1 -1
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.
|
5
|
+
* Version: v0.3.0-beta.199
|
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,
|
3610
|
+
function KhronosTextureContainer(arrayBuffer, baseOffset) {
|
3611
3611
|
if (baseOffset === void 0) { baseOffset = 0; }
|
3612
3612
|
this.arrayBuffer = arrayBuffer;
|
3613
3613
|
this.baseOffset = baseOffset;
|
@@ -3627,7 +3627,7 @@ var KhronosTextureContainer = /** @class */ (function () {
|
|
3627
3627
|
identifier[9] !== 0x0a ||
|
3628
3628
|
identifier[10] !== 0x1a ||
|
3629
3629
|
identifier[11] !== 0x0a) {
|
3630
|
-
throw Error('texture missing KTX identifier');
|
3630
|
+
throw Error('texture missing KTX 1.1 identifier');
|
3631
3631
|
}
|
3632
3632
|
// load the reset of the header in native 32 bit uint
|
3633
3633
|
var dataSize = Uint32Array.BYTES_PER_ELEMENT;
|
@@ -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
|
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.
|
5892
|
+
consoleLog('version: ' + "0.3.0-beta.199");
|
5897
5893
|
var ModuleMsg = 'RI Package: @predy-js/render-interface';
|
5898
5894
|
|
5899
5895
|
var RI = /*#__PURE__*/Object.freeze({
|