@galacean/engine-shaderlab 1.4.3 → 1.4.4
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/browser.js +1 -1
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/browser.verbose.js +18 -13
- package/dist/browser.verbose.js.map +1 -1
- package/dist/browser.verbose.min.js +1 -1
- package/dist/browser.verbose.min.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/main.verbose.js +18 -13
- package/dist/main.verbose.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/module.verbose.js +18 -13
- package/dist/module.verbose.js.map +1 -1
- package/package.json +4 -4
package/dist/module.verbose.js
CHANGED
|
@@ -1754,6 +1754,9 @@ var BuiltinFunction = /*#__PURE__*/ function() {
|
|
|
1754
1754
|
list.push(fn);
|
|
1755
1755
|
BuiltinFunctionTable.set(ident, list);
|
|
1756
1756
|
};
|
|
1757
|
+
// TODO: correct the type deduce, consider the following case:
|
|
1758
|
+
// It incorrectly inferred the type of the following expression as float, which should be vec3.
|
|
1759
|
+
// max(scatterAmt.xyz,0.0001)
|
|
1757
1760
|
BuiltinFunction.getFn = function getFn(ident, parameterTypes) {
|
|
1758
1761
|
var list = BuiltinFunctionTable.get(ident);
|
|
1759
1762
|
if (list) {
|
|
@@ -3690,12 +3693,13 @@ var TreeNode = /*#__PURE__*/ function() {
|
|
|
3690
3693
|
ExpressionAstNode.prototype.init.call(this);
|
|
3691
3694
|
if (this.children.length === 1) {
|
|
3692
3695
|
this.type = this.children[0].type;
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3696
|
+
// TODO: Temporarily remove type deduce due to generic function type issue.
|
|
3697
|
+
// } else {
|
|
3698
|
+
// const exp1 = this.children[0] as MultiplicativeExpression;
|
|
3699
|
+
// const exp2 = this.children[2] as UnaryExpression;
|
|
3700
|
+
// if (exp1.type === exp2.type) {
|
|
3701
|
+
// this.type = exp1.type;
|
|
3702
|
+
// }
|
|
3699
3703
|
}
|
|
3700
3704
|
};
|
|
3701
3705
|
return MultiplicativeExpression;
|
|
@@ -3714,12 +3718,13 @@ var TreeNode = /*#__PURE__*/ function() {
|
|
|
3714
3718
|
ExpressionAstNode.prototype.init.call(this);
|
|
3715
3719
|
if (this.children.length === 1) {
|
|
3716
3720
|
this.type = this.children[0].type;
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3721
|
+
// TODO: Temporarily remove type deduce due to generic function type issue.
|
|
3722
|
+
// } else {
|
|
3723
|
+
// const exp1 = this.children[0] as AdditiveExpression;
|
|
3724
|
+
// const exp2 = this.children[2] as MultiplicativeExpression;
|
|
3725
|
+
// if (exp1.type === exp2.type) {
|
|
3726
|
+
// this.type = exp1.type;
|
|
3727
|
+
// }
|
|
3723
3728
|
}
|
|
3724
3729
|
};
|
|
3725
3730
|
return AdditiveExpression;
|
|
@@ -8054,7 +8059,7 @@ ShaderLab._shaderPositionPool = ShaderLabUtils.createObjectPool(ShaderPosition);
|
|
|
8054
8059
|
ShaderLab._shaderRangePool = ShaderLabUtils.createObjectPool(ShaderRange);
|
|
8055
8060
|
|
|
8056
8061
|
//@ts-ignore
|
|
8057
|
-
var version = "1.4.
|
|
8062
|
+
var version = "1.4.4";
|
|
8058
8063
|
var mode = "Release";
|
|
8059
8064
|
mode = "Verbose";
|
|
8060
8065
|
console.log("Galacean Engine ShaderLab Version: " + version + " | Mode: " + mode);
|