@predy-js/render-interface 0.3.0-beta.18 → 0.3.0-beta.181

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.18
5
+ * Version: v0.3.0-beta.181
6
6
  */
7
7
 
8
8
  'use strict';
@@ -23,7 +23,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
23
23
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24
24
  PERFORMANCE OF THIS SOFTWARE.
25
25
  ***************************************************************************** */
26
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
26
+ /* global Reflect, Promise, SuppressedError, Symbol */
27
27
 
28
28
  var extendStatics = function(d, b) {
29
29
  extendStatics = Object.setPrototypeOf ||
@@ -1795,13 +1795,18 @@ var GLProgram = /** @class */ (function () {
1795
1795
  }
1796
1796
  };
1797
1797
  GLProgram.prototype.getSemanticValue = function (state, semanticName) {
1798
- var renderPassSemantics = state.currentPass.semantics;
1799
- var renderFrameSemantics = state.currentFrame.semantics;
1800
- if (renderPassSemantics.hasSemanticValue(semanticName)) {
1801
- return renderPassSemantics.getSemanticValue(semanticName, state);
1798
+ if (typeof semanticName === 'function') {
1799
+ return semanticName(state);
1802
1800
  }
1803
- else if (renderFrameSemantics.hasSemanticValue(semanticName)) {
1804
- return renderFrameSemantics.getSemanticValue(semanticName, state);
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
+ }
1805
1810
  }
1806
1811
  };
1807
1812
  GLProgram.prototype.setupUniforms = function (state) {
@@ -4486,10 +4491,10 @@ var GLMaterial = /** @class */ (function () {
4486
4491
  webGLState.depthFunc(currentState.depthFunc);
4487
4492
  webGLState.depthRange((_a = currentState.depthRange) === null || _a === void 0 ? void 0 : _a[0], (_b = currentState.depthRange) === null || _b === void 0 ? void 0 : _b[1]);
4488
4493
  }
4494
+ webGLState.frontFace(currentState.frontFace);
4489
4495
  if (currentState.cullFaceEnabled) {
4490
4496
  //face
4491
4497
  webGLState.cullFace(currentState.cullFace);
4492
- webGLState.frontFace(currentState.frontFace);
4493
4498
  }
4494
4499
  if (currentState.polygonOffsetFill) {
4495
4500
  var polygonOffset = currentState.polygonOffset || [0, 0];
@@ -5860,7 +5865,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5860
5865
  return MarsSharedGeometry;
5861
5866
  }(MarsGeometry));
5862
5867
 
5863
- consoleLog('version: ' + "0.3.0-beta.18");
5868
+ consoleLog('version: ' + "0.3.0-beta.181");
5864
5869
  var ModuleMsg = 'RI Package: @predy-js/render-interface';
5865
5870
 
5866
5871
  var RI = /*#__PURE__*/Object.freeze({