@predy-js/render-interface 0.3.0-beta.157 → 0.3.0-beta.158

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.3.0-beta.157
5
+ * Version: v0.3.0-beta.158
6
6
  */
7
7
 
8
8
  /******************************************************************************
@@ -19,7 +19,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
19
19
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20
20
  PERFORMANCE OF THIS SOFTWARE.
21
21
  ***************************************************************************** */
22
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
22
+ /* global Reflect, Promise, SuppressedError, Symbol */
23
23
 
24
24
  var extendStatics = function(d, b) {
25
25
  extendStatics = Object.setPrototypeOf ||
@@ -1791,13 +1791,18 @@ var GLProgram = /** @class */ (function () {
1791
1791
  }
1792
1792
  };
1793
1793
  GLProgram.prototype.getSemanticValue = function (state, semanticName) {
1794
- var renderPassSemantics = state.currentPass.semantics;
1795
- var renderFrameSemantics = state.currentFrame.semantics;
1796
- if (renderPassSemantics.hasSemanticValue(semanticName)) {
1797
- return renderPassSemantics.getSemanticValue(semanticName, state);
1794
+ if (typeof semanticName === 'function') {
1795
+ return semanticName(state);
1798
1796
  }
1799
- else if (renderFrameSemantics.hasSemanticValue(semanticName)) {
1800
- return renderFrameSemantics.getSemanticValue(semanticName, state);
1797
+ else {
1798
+ var renderPassSemantics = state.currentPass.semantics;
1799
+ var renderFrameSemantics = state.currentFrame.semantics;
1800
+ if (renderPassSemantics.hasSemanticValue(semanticName)) {
1801
+ return renderPassSemantics.getSemanticValue(semanticName, state);
1802
+ }
1803
+ else if (renderFrameSemantics.hasSemanticValue(semanticName)) {
1804
+ return renderFrameSemantics.getSemanticValue(semanticName, state);
1805
+ }
1801
1806
  }
1802
1807
  };
1803
1808
  GLProgram.prototype.setupUniforms = function (state) {
@@ -5856,7 +5861,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5856
5861
  return MarsSharedGeometry;
5857
5862
  }(MarsGeometry));
5858
5863
 
5859
- consoleLog('version: ' + "0.3.0-beta.157");
5864
+ consoleLog('version: ' + "0.3.0-beta.158");
5860
5865
  var ModuleMsg = 'RI Package: @predy-js/render-interface';
5861
5866
 
5862
5867
  var RI = /*#__PURE__*/Object.freeze({