@predy-js/render-interface 0.3.0-beta.126 → 0.3.0-beta.128
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 +8 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -13
- package/dist/index.mjs.map +1 -1
- package/dist/src/render/MarsMaterialDataBlock.d.ts +3 -3
- package/dist/src/render/MarsTextureFactory.d.ts +1 -1
- package/dist/src/webgl/GLProgram.d.ts +3 -2
- package/dist/statistic.js +1 -1
- package/dist/types/Material.d.ts +3 -4
- package/package.json +1 -1
- package/types/Material.ts +3 -4
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.3.0-beta.
|
5
|
+
* Version: v0.3.0-beta.128
|
6
6
|
*/
|
7
7
|
|
8
8
|
'use strict';
|
@@ -1795,18 +1795,13 @@ var GLProgram = /** @class */ (function () {
|
|
1795
1795
|
}
|
1796
1796
|
};
|
1797
1797
|
GLProgram.prototype.getSemanticValue = function (state, semanticName) {
|
1798
|
-
|
1799
|
-
|
1798
|
+
var renderPassSemantics = state.currentPass.semantics;
|
1799
|
+
var renderFrameSemantics = state.currentFrame.semantics;
|
1800
|
+
if (renderPassSemantics.hasSemanticValue(semanticName)) {
|
1801
|
+
return renderPassSemantics.getSemanticValue(semanticName, state);
|
1800
1802
|
}
|
1801
|
-
else {
|
1802
|
-
|
1803
|
-
var renderFrameSemantics = state.currentFrame.semantics;
|
1804
|
-
if (renderPassSemantics.hasSemanticValue(semanticName)) {
|
1805
|
-
return renderPassSemantics.getSemanticValue(semanticName, state);
|
1806
|
-
}
|
1807
|
-
else if (renderFrameSemantics.hasSemanticValue(semanticName)) {
|
1808
|
-
return renderFrameSemantics.getSemanticValue(semanticName, state);
|
1809
|
-
}
|
1803
|
+
else if (renderFrameSemantics.hasSemanticValue(semanticName)) {
|
1804
|
+
return renderFrameSemantics.getSemanticValue(semanticName, state);
|
1810
1805
|
}
|
1811
1806
|
};
|
1812
1807
|
GLProgram.prototype.setupUniforms = function (state) {
|
@@ -5865,7 +5860,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5865
5860
|
return MarsSharedGeometry;
|
5866
5861
|
}(MarsGeometry));
|
5867
5862
|
|
5868
|
-
consoleLog('version: ' + "0.3.0-beta.
|
5863
|
+
consoleLog('version: ' + "0.3.0-beta.128");
|
5869
5864
|
var ModuleMsg = 'RI Package: @predy-js/render-interface';
|
5870
5865
|
|
5871
5866
|
var RI = /*#__PURE__*/Object.freeze({
|