@predy-js/render-interface 0.1.65-beta.9 → 0.1.66-beta.1

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/README.md ADDED
@@ -0,0 +1,4 @@
1
+
2
+ ** test case
3
+ http://local.xiaohongshu.com:8080/test/index.html
4
+ http://localhost:8080/test/index.html
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.9
5
+ * Version: v0.1.66-beta.1
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
  }());
@@ -3381,7 +3381,10 @@ var GLFrameBuffer = /** @class */ (function () {
3381
3381
  gl.framebufferRenderbuffer(gl.FRAMEBUFFER, attachment_1, gl.RENDERBUFFER, renderBuffer.glHandle);
3382
3382
  gl.bindFramebuffer(gl.FRAMEBUFFER, this.fbo);
3383
3383
  }
3384
- depthTexture.update({ data: { width: viewport[2], height: viewport[3], data: new Uint16Array(0) } });
3384
+ depthTexture.update({
3385
+ sourceType: exports.TextureSourceType.framebuffer,
3386
+ data: { width: viewport[2], height: viewport[3] },
3387
+ });
3385
3388
  var attachment = depthTexture && stencilTexture ? gl.DEPTH_STENCIL_ATTACHMENT : gl.DEPTH_ATTACHMENT;
3386
3389
  gl.framebufferTexture2D(FRAMEBUFFER, attachment, gl.TEXTURE_2D, depthTexture.glHandle, 0);
3387
3390
  }
@@ -3424,7 +3427,7 @@ var GLFrameBuffer = /** @class */ (function () {
3424
3427
  var gl = this.renderer.gl;
3425
3428
  var gpu = this.renderer.gpu;
3426
3429
  var viewport = this.viewport;
3427
- var data = { width: viewport[2], height: viewport[3], data: new Uint8Array(0) };
3430
+ var data = { width: viewport[2], height: viewport[3] };
3428
3431
  var buffers = [];
3429
3432
  if (colors) {
3430
3433
  this.colorTextures = colors.slice();
@@ -3432,7 +3435,7 @@ var GLFrameBuffer = /** @class */ (function () {
3432
3435
  this.renderer.state.activeTexture(gl.TEXTURE0);
3433
3436
  var multisampleFBO = this.multisampleFbo;
3434
3437
  this.colorTextures.forEach(function (tex, index) {
3435
- tex.update({ data: data });
3438
+ tex.update({ sourceType: exports.TextureSourceType.framebuffer, data: data });
3436
3439
  if (multisampleFBO) {
3437
3440
  gl.bindFramebuffer(gl.FRAMEBUFFER, multisampleFBO);
3438
3441
  var renderBuffer = new GLRenderBuffer(_this.renderer, {
@@ -3998,7 +4001,7 @@ var MarsTexture = /** @class */ (function () {
3998
4001
  };
3999
4002
  MarsTexture.prototype.uploadCurrentVideoFrame = function () {
4000
4003
  if (this.options.sourceType === exports.TextureSourceType.video && this.options.video && this.internal) {
4001
- this.internal.update({ video: this.options.video });
4004
+ this.internal.update({ sourceType: exports.TextureSourceType.video, video: this.options.video });
4002
4005
  return true;
4003
4006
  }
4004
4007
  return false;
@@ -5835,7 +5838,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5835
5838
  return MarsSharedGeometry;
5836
5839
  }(MarsGeometry));
5837
5840
 
5838
- consoleLog('version: ' + "0.1.65-beta.9");
5841
+ consoleLog('version: ' + "0.1.66-beta.1");
5839
5842
 
5840
5843
  exports.GPUBufferOptionsMemoryShared = GPUBufferOptionsMemoryShared;
5841
5844
  exports.Geometry = MarsGeometry;