@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.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.18
5
+ * Version: v0.3.0-beta.181
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) {
@@ -4482,10 +4487,10 @@ var GLMaterial = /** @class */ (function () {
4482
4487
  webGLState.depthFunc(currentState.depthFunc);
4483
4488
  webGLState.depthRange((_a = currentState.depthRange) === null || _a === void 0 ? void 0 : _a[0], (_b = currentState.depthRange) === null || _b === void 0 ? void 0 : _b[1]);
4484
4489
  }
4490
+ webGLState.frontFace(currentState.frontFace);
4485
4491
  if (currentState.cullFaceEnabled) {
4486
4492
  //face
4487
4493
  webGLState.cullFace(currentState.cullFace);
4488
- webGLState.frontFace(currentState.frontFace);
4489
4494
  }
4490
4495
  if (currentState.polygonOffsetFill) {
4491
4496
  var polygonOffset = currentState.polygonOffset || [0, 0];
@@ -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.18");
5864
+ consoleLog('version: ' + "0.3.0-beta.181");
5860
5865
  var ModuleMsg = 'RI Package: @predy-js/render-interface';
5861
5866
 
5862
5867
  var RI = /*#__PURE__*/Object.freeze({