@predy-js/render-interface 0.1.65-beta.10 → 0.1.65-beta.3

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.1.65-beta.10
5
+ * Version: v0.1.65-beta.3
6
6
  */
7
7
 
8
8
  'use strict';
@@ -2196,7 +2196,7 @@ var GLShaderLibrary = /** @class */ (function () {
2196
2196
  this._glFragShaderMap = new Map();
2197
2197
  }
2198
2198
  // @ts-expect-error safe to assign
2199
- this['renderer'] = null;
2199
+ this.renderer = null;
2200
2200
  };
2201
2201
  return GLShaderLibrary;
2202
2202
  }());
@@ -3373,10 +3373,7 @@ var GLFrameBuffer = /** @class */ (function () {
3373
3373
  gl.framebufferRenderbuffer(gl.FRAMEBUFFER, attachment_1, gl.RENDERBUFFER, renderBuffer.glHandle);
3374
3374
  gl.bindFramebuffer(gl.FRAMEBUFFER, this.fbo);
3375
3375
  }
3376
- depthTexture.update({
3377
- sourceType: exports.TextureSourceType.framebuffer,
3378
- data: { width: viewport[2], height: viewport[3] },
3379
- });
3376
+ depthTexture.update({ data: { width: viewport[2], height: viewport[3], data: new Uint16Array(0) } });
3380
3377
  var attachment = depthTexture && stencilTexture ? gl.DEPTH_STENCIL_ATTACHMENT : gl.DEPTH_ATTACHMENT;
3381
3378
  gl.framebufferTexture2D(FRAMEBUFFER, attachment, gl.TEXTURE_2D, depthTexture.glHandle, 0);
3382
3379
  }
@@ -3419,7 +3416,7 @@ var GLFrameBuffer = /** @class */ (function () {
3419
3416
  var gl = this.renderer.gl;
3420
3417
  var gpu = this.renderer.gpu;
3421
3418
  var viewport = this.viewport;
3422
- var data = { width: viewport[2], height: viewport[3] };
3419
+ var data = { width: viewport[2], height: viewport[3], data: new Uint8Array(0) };
3423
3420
  var buffers = [];
3424
3421
  if (colors) {
3425
3422
  this.colorTextures = colors.slice();
@@ -3427,7 +3424,7 @@ var GLFrameBuffer = /** @class */ (function () {
3427
3424
  this.renderer.state.activeTexture(gl.TEXTURE0);
3428
3425
  var multisampleFBO = this.multisampleFbo;
3429
3426
  this.colorTextures.forEach(function (tex, index) {
3430
- tex.update({ sourceType: exports.TextureSourceType.framebuffer, data: data });
3427
+ tex.update({ data: data });
3431
3428
  if (multisampleFBO) {
3432
3429
  gl.bindFramebuffer(gl.FRAMEBUFFER, multisampleFBO);
3433
3430
  var renderBuffer = new GLRenderBuffer(_this.renderer, {
@@ -3993,7 +3990,7 @@ var MarsTexture = /** @class */ (function () {
3993
3990
  };
3994
3991
  MarsTexture.prototype.uploadCurrentVideoFrame = function () {
3995
3992
  if (this.options.sourceType === exports.TextureSourceType.video && this.options.video && this.internal) {
3996
- this.internal.update({ sourceType: exports.TextureSourceType.video, video: this.options.video });
3993
+ this.internal.update({ video: this.options.video });
3997
3994
  return true;
3998
3995
  }
3999
3996
  return false;
@@ -5830,7 +5827,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5830
5827
  return MarsSharedGeometry;
5831
5828
  }(MarsGeometry));
5832
5829
 
5833
- consoleLog('version: ' + "0.1.65-beta.10");
5830
+ consoleLog('version: ' + "0.1.65-beta.3");
5834
5831
 
5835
5832
  exports.GPUBufferOptionsMemoryShared = GPUBufferOptionsMemoryShared;
5836
5833
  exports.Geometry = MarsGeometry;