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

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.mjs 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.33
6
6
  */
7
7
 
8
8
  /******************************************************************************
@@ -434,8 +434,7 @@ var RenderFrameInternal = /** @class */ (function () {
434
434
  RenderFrameInternal.renderRenderPass = function (renderer, pass, renderState) {
435
435
  renderState.currentPass = pass;
436
436
  setupRenderPass(renderer, pass);
437
- var camera = pass.camera;
438
- renderMeshesByCamera(renderer, camera, renderState);
437
+ renderMeshes(renderer, renderState);
439
438
  endRenderPass(renderer, pass);
440
439
  };
441
440
  return RenderFrameInternal;
@@ -446,8 +445,7 @@ function endRenderPass(renderer, renderPass) {
446
445
  }
447
446
  renderPass.unbind();
448
447
  }
449
- function renderMeshesByCamera(renderer, camera, state) {
450
- state.currentCamera = camera;
448
+ function renderMeshes(renderer, state) {
451
449
  //assume meshes has been sorted
452
450
  var sortedMeshes = state.currentPass.meshes;
453
451
  var delegate = state.currentPass.delegate;
@@ -3981,6 +3979,7 @@ var MarsTexture = /** @class */ (function () {
3981
3979
 
3982
3980
  var MarsRenderPassColorAttachment = /** @class */ (function () {
3983
3981
  function MarsRenderPassColorAttachment(options) {
3982
+ this.storageType = RenderPassAttachmentStorageType.color;
3984
3983
  if (options.texture instanceof MarsTexture) {
3985
3984
  this.texture = options.texture;
3986
3985
  this.externalTexture = true;
@@ -4013,13 +4012,6 @@ var MarsRenderPassColorAttachment = /** @class */ (function () {
4013
4012
  enumerable: false,
4014
4013
  configurable: true
4015
4014
  });
4016
- Object.defineProperty(MarsRenderPassColorAttachment.prototype, "storageType", {
4017
- get: function () {
4018
- return RenderPassAttachmentStorageType.color;
4019
- },
4020
- enumerable: false,
4021
- configurable: true
4022
- });
4023
4015
  Object.defineProperty(MarsRenderPassColorAttachment.prototype, "size", {
4024
4016
  get: function () {
4025
4017
  var tex = this.texture;
@@ -4076,7 +4068,6 @@ var MarsRenderPass = /** @class */ (function () {
4076
4068
  this.meshOrder = options.meshOrder || RenderPassMeshOrder.ascending;
4077
4069
  this.meshes = (options.meshes || []).slice();
4078
4070
  sortByOrder(this.meshes, this.meshOrder);
4079
- this.camera = options.camera;
4080
4071
  this.options = options;
4081
4072
  this.clearAction = Object.assign({}, options.clearAction);
4082
4073
  this._attachments = [];
@@ -4614,7 +4605,7 @@ var MarsMaterial = /** @class */ (function () {
4614
4605
  this._isDestroyed = false;
4615
4606
  this.name = options.name || ('Material' + seed$2++);
4616
4607
  this._dataBlocks = (options.dataBlocks || []).map(function (b) { return (b instanceof MarsMaterialDataBlock) ? b : new MarsMaterialDataBlock(b); });
4617
- this.renderType = options.renderType || 0 /* MaterialRenderType.normal */;
4608
+ this.renderType = 0 /* MaterialRenderType.normal */;
4618
4609
  this.states = this.createMaterialStates(options.states);
4619
4610
  this.options = options;
4620
4611
  if (!this._dataBlocks.length) {
@@ -5705,7 +5696,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5705
5696
  return MarsSharedGeometry;
5706
5697
  }(MarsGeometry));
5707
5698
 
5708
- consoleLog('version: ' + "0.1.32-beta.5");
5699
+ consoleLog('version: ' + "0.1.33");
5709
5700
 
5710
5701
  export { DestroyOptions, MarsGeometry as Geometry, MarsInstancedMesh as InstancedMesh, MarsTextureFactory, MarsMaterial as Material, MarsMaterialDataBlock as MaterialDataBlock, MarsMesh as Mesh, MarsRenderFrame as RenderFrame, MarsRenderPass as RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassMeshOrder, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, MarsRenderer as Renderer, ShaderCompileResultStatus, ShaderLibraryEmpty, MarsSharedGeometry as SharedGeometry, MarsTexture as Texture, TextureLoadAction, TextureSourceType, TextureStoreAction, constants, getDefaultGPUCapability, getDefaultTextureFactory, setDefaultTextureFactory };
5711
5702
  //# sourceMappingURL=index.mjs.map