@predy-js/render-interface 0.1.73-beta.2 → 0.1.74
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 +15 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -10
- package/dist/index.mjs.map +1 -1
- package/dist/src/render/MarsTextureFactory.d.ts +1 -1
- package/dist/src/webgl/GLProgram.d.ts +1 -1
- package/dist/statistic.js +1 -1
- package/dist/types/RenderPass.d.ts +1 -0
- package/dist/types/ShaderLibrary.d.ts +0 -18
- package/dist/types/native/PredyNativeInternal.d.ts +30 -1
- package/package.json +1 -1
- package/types/RenderPass.ts +1 -1
- package/types/ShaderLibrary.ts +0 -20
- package/types/native/PredyNativeInternal.ts +31 -2
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.
|
5
|
+
* Version: v0.1.74
|
6
6
|
*/
|
7
7
|
|
8
8
|
/******************************************************************************
|
@@ -106,7 +106,7 @@ var TextureLoadAction;
|
|
106
106
|
(function (TextureLoadAction) {
|
107
107
|
TextureLoadAction[TextureLoadAction["whatever"] = 0] = "whatever";
|
108
108
|
//preserve previous attachment
|
109
|
-
|
109
|
+
TextureLoadAction[TextureLoadAction["load"] = 1] = "load";
|
110
110
|
//clear attachment
|
111
111
|
TextureLoadAction[TextureLoadAction["clear"] = 2] = "clear";
|
112
112
|
})(TextureLoadAction || (TextureLoadAction = {}));
|
@@ -4126,6 +4126,16 @@ var MarsRenderPassColorAttachment = /** @class */ (function () {
|
|
4126
4126
|
}());
|
4127
4127
|
|
4128
4128
|
var seed$3 = 1;
|
4129
|
+
var defStoreAction = {
|
4130
|
+
colorAction: TextureStoreAction.store,
|
4131
|
+
depthAction: TextureStoreAction.store,
|
4132
|
+
stencilAction: TextureStoreAction.store,
|
4133
|
+
};
|
4134
|
+
var defLoadAction = {
|
4135
|
+
colorAction: TextureLoadAction.load,
|
4136
|
+
depthAction: TextureLoadAction.load,
|
4137
|
+
stencilAction: TextureLoadAction.load,
|
4138
|
+
};
|
4129
4139
|
var MarsRenderPass = /** @class */ (function () {
|
4130
4140
|
function MarsRenderPass(options, renderer) {
|
4131
4141
|
var _a;
|
@@ -4136,7 +4146,7 @@ var MarsRenderPass = /** @class */ (function () {
|
|
4136
4146
|
this.meshes = (options.meshes || []).slice();
|
4137
4147
|
sortByOrder(this.meshes, this.meshOrder);
|
4138
4148
|
this.options = options;
|
4139
|
-
this.loadAction = Object.assign({}, options.loadAction);
|
4149
|
+
this.loadAction = Object.assign({}, defLoadAction, options.loadAction);
|
4140
4150
|
this._attachments = [];
|
4141
4151
|
this.semantics = new MarsSemanticMap(options.semantics);
|
4142
4152
|
this.depthStencilType = ((_a = options.depthStencilAttachment) === null || _a === void 0 ? void 0 : _a.storageType) || RenderPassAttachmentStorageType.none;
|
@@ -4145,12 +4155,7 @@ var MarsRenderPass = /** @class */ (function () {
|
|
4145
4155
|
this.assignRenderer(renderer);
|
4146
4156
|
}
|
4147
4157
|
this.delegate = options.delegate || {};
|
4148
|
-
|
4149
|
-
colorAction: TextureStoreAction.store,
|
4150
|
-
depthAction: TextureStoreAction.store,
|
4151
|
-
stencilAction: TextureStoreAction.store,
|
4152
|
-
};
|
4153
|
-
this.storeAction = Object.assign(defStoreAction, options.storeAction);
|
4158
|
+
this.storeAction = Object.assign({}, defStoreAction, options.storeAction);
|
4154
4159
|
}
|
4155
4160
|
Object.defineProperty(MarsRenderPass.prototype, "isDestroyed", {
|
4156
4161
|
get: function () {
|
@@ -5833,7 +5838,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5833
5838
|
return MarsSharedGeometry;
|
5834
5839
|
}(MarsGeometry));
|
5835
5840
|
|
5836
|
-
consoleLog('version: ' + "0.1.
|
5841
|
+
consoleLog('version: ' + "0.1.74");
|
5837
5842
|
var ModuleMsg = 'RI Package: @predy-js/render-interface';
|
5838
5843
|
|
5839
5844
|
var RI = /*#__PURE__*/Object.freeze({
|