@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 +9 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -14
- 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.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.
|
5
|
+
* Version: v0.3.0-beta.127
|
6
6
|
*/
|
7
7
|
|
8
8
|
/******************************************************************************
|
@@ -1791,18 +1791,13 @@ var GLProgram = /** @class */ (function () {
|
|
1791
1791
|
}
|
1792
1792
|
};
|
1793
1793
|
GLProgram.prototype.getSemanticValue = function (state, semanticName) {
|
1794
|
-
|
1795
|
-
|
1794
|
+
var renderPassSemantics = state.currentPass.semantics;
|
1795
|
+
var renderFrameSemantics = state.currentFrame.semantics;
|
1796
|
+
if (renderPassSemantics.hasSemanticValue(semanticName)) {
|
1797
|
+
return renderPassSemantics.getSemanticValue(semanticName, state);
|
1796
1798
|
}
|
1797
|
-
else {
|
1798
|
-
|
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
|
-
}
|
1799
|
+
else if (renderFrameSemantics.hasSemanticValue(semanticName)) {
|
1800
|
+
return renderFrameSemantics.getSemanticValue(semanticName, state);
|
1806
1801
|
}
|
1807
1802
|
};
|
1808
1803
|
GLProgram.prototype.setupUniforms = function (state) {
|
@@ -4487,10 +4482,10 @@ var GLMaterial = /** @class */ (function () {
|
|
4487
4482
|
webGLState.depthFunc(currentState.depthFunc);
|
4488
4483
|
webGLState.depthRange((_a = currentState.depthRange) === null || _a === void 0 ? void 0 : _a[0], (_b = currentState.depthRange) === null || _b === void 0 ? void 0 : _b[1]);
|
4489
4484
|
}
|
4485
|
+
webGLState.frontFace(currentState.frontFace);
|
4490
4486
|
if (currentState.cullFaceEnabled) {
|
4491
4487
|
//face
|
4492
4488
|
webGLState.cullFace(currentState.cullFace);
|
4493
|
-
webGLState.frontFace(currentState.frontFace);
|
4494
4489
|
}
|
4495
4490
|
if (currentState.polygonOffsetFill) {
|
4496
4491
|
var polygonOffset = currentState.polygonOffset || [0, 0];
|
@@ -5861,7 +5856,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5861
5856
|
return MarsSharedGeometry;
|
5862
5857
|
}(MarsGeometry));
|
5863
5858
|
|
5864
|
-
consoleLog('version: ' + "0.3.0-beta.
|
5859
|
+
consoleLog('version: ' + "0.3.0-beta.127");
|
5865
5860
|
var ModuleMsg = 'RI Package: @predy-js/render-interface';
|
5866
5861
|
|
5867
5862
|
var RI = /*#__PURE__*/Object.freeze({
|