@predy-js/render-interface 0.3.0-beta.125 → 0.3.0-beta.127

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.3.0-beta.125
5
+ * Version: v0.3.0-beta.127
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
- if (typeof semanticName === 'function') {
1799
- return semanticName(state);
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
- var renderPassSemantics = state.currentPass.semantics;
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) {
@@ -4491,10 +4486,10 @@ var GLMaterial = /** @class */ (function () {
4491
4486
  webGLState.depthFunc(currentState.depthFunc);
4492
4487
  webGLState.depthRange((_a = currentState.depthRange) === null || _a === void 0 ? void 0 : _a[0], (_b = currentState.depthRange) === null || _b === void 0 ? void 0 : _b[1]);
4493
4488
  }
4489
+ webGLState.frontFace(currentState.frontFace);
4494
4490
  if (currentState.cullFaceEnabled) {
4495
4491
  //face
4496
4492
  webGLState.cullFace(currentState.cullFace);
4497
- webGLState.frontFace(currentState.frontFace);
4498
4493
  }
4499
4494
  if (currentState.polygonOffsetFill) {
4500
4495
  var polygonOffset = currentState.polygonOffset || [0, 0];
@@ -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.125");
5863
+ consoleLog('version: ' + "0.3.0-beta.127");
5869
5864
  var ModuleMsg = 'RI Package: @predy-js/render-interface';
5870
5865
 
5871
5866
  var RI = /*#__PURE__*/Object.freeze({