@predy-js/render-interface 0.1.32-beta.5 → 0.1.32

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.32-beta.5
5
+ * Version: v0.1.32
6
6
  */
7
7
 
8
8
  'use strict';
@@ -438,8 +438,7 @@ var RenderFrameInternal = /** @class */ (function () {
438
438
  RenderFrameInternal.renderRenderPass = function (renderer, pass, renderState) {
439
439
  renderState.currentPass = pass;
440
440
  setupRenderPass(renderer, pass);
441
- var camera = pass.camera;
442
- renderMeshesByCamera(renderer, camera, renderState);
441
+ renderMeshes(renderer, renderState);
443
442
  endRenderPass(renderer, pass);
444
443
  };
445
444
  return RenderFrameInternal;
@@ -450,8 +449,7 @@ function endRenderPass(renderer, renderPass) {
450
449
  }
451
450
  renderPass.unbind();
452
451
  }
453
- function renderMeshesByCamera(renderer, camera, state) {
454
- state.currentCamera = camera;
452
+ function renderMeshes(renderer, state) {
455
453
  //assume meshes has been sorted
456
454
  var sortedMeshes = state.currentPass.meshes;
457
455
  var delegate = state.currentPass.delegate;
@@ -3985,6 +3983,7 @@ var MarsTexture = /** @class */ (function () {
3985
3983
 
3986
3984
  var MarsRenderPassColorAttachment = /** @class */ (function () {
3987
3985
  function MarsRenderPassColorAttachment(options) {
3986
+ this.storageType = exports.RenderPassAttachmentStorageType.color;
3988
3987
  if (options.texture instanceof MarsTexture) {
3989
3988
  this.texture = options.texture;
3990
3989
  this.externalTexture = true;
@@ -4017,13 +4016,6 @@ var MarsRenderPassColorAttachment = /** @class */ (function () {
4017
4016
  enumerable: false,
4018
4017
  configurable: true
4019
4018
  });
4020
- Object.defineProperty(MarsRenderPassColorAttachment.prototype, "storageType", {
4021
- get: function () {
4022
- return exports.RenderPassAttachmentStorageType.color;
4023
- },
4024
- enumerable: false,
4025
- configurable: true
4026
- });
4027
4019
  Object.defineProperty(MarsRenderPassColorAttachment.prototype, "size", {
4028
4020
  get: function () {
4029
4021
  var tex = this.texture;
@@ -4080,7 +4072,6 @@ var MarsRenderPass = /** @class */ (function () {
4080
4072
  this.meshOrder = options.meshOrder || exports.RenderPassMeshOrder.ascending;
4081
4073
  this.meshes = (options.meshes || []).slice();
4082
4074
  sortByOrder(this.meshes, this.meshOrder);
4083
- this.camera = options.camera;
4084
4075
  this.options = options;
4085
4076
  this.clearAction = Object.assign({}, options.clearAction);
4086
4077
  this._attachments = [];
@@ -4618,7 +4609,7 @@ var MarsMaterial = /** @class */ (function () {
4618
4609
  this._isDestroyed = false;
4619
4610
  this.name = options.name || ('Material' + seed$2++);
4620
4611
  this._dataBlocks = (options.dataBlocks || []).map(function (b) { return (b instanceof MarsMaterialDataBlock) ? b : new MarsMaterialDataBlock(b); });
4621
- this.renderType = options.renderType || 0 /* MaterialRenderType.normal */;
4612
+ this.renderType = 0 /* MaterialRenderType.normal */;
4622
4613
  this.states = this.createMaterialStates(options.states);
4623
4614
  this.options = options;
4624
4615
  if (!this._dataBlocks.length) {
@@ -5709,7 +5700,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5709
5700
  return MarsSharedGeometry;
5710
5701
  }(MarsGeometry));
5711
5702
 
5712
- consoleLog('version: ' + "0.1.32-beta.5");
5703
+ consoleLog('version: ' + "0.1.32");
5713
5704
 
5714
5705
  exports.Geometry = MarsGeometry;
5715
5706
  exports.InstancedMesh = MarsInstancedMesh;