@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.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.
|
5
|
+
* Version: v0.3.0-beta.199
|
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,
|
3614
|
+
function KhronosTextureContainer(arrayBuffer, baseOffset) {
|
3615
3615
|
if (baseOffset === void 0) { baseOffset = 0; }
|
3616
3616
|
this.arrayBuffer = arrayBuffer;
|
3617
3617
|
this.baseOffset = baseOffset;
|
@@ -3631,7 +3631,7 @@ var KhronosTextureContainer = /** @class */ (function () {
|
|
3631
3631
|
identifier[9] !== 0x0a ||
|
3632
3632
|
identifier[10] !== 0x1a ||
|
3633
3633
|
identifier[11] !== 0x0a) {
|
3634
|
-
throw Error('texture missing KTX identifier');
|
3634
|
+
throw Error('texture missing KTX 1.1 identifier');
|
3635
3635
|
}
|
3636
3636
|
// load the reset of the header in native 32 bit uint
|
3637
3637
|
var dataSize = Uint32Array.BYTES_PER_ELEMENT;
|
@@ -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
|
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.
|
5896
|
+
consoleLog('version: ' + "0.3.0-beta.199");
|
5901
5897
|
var ModuleMsg = 'RI Package: @predy-js/render-interface';
|
5902
5898
|
|
5903
5899
|
var RI = /*#__PURE__*/Object.freeze({
|