|
@@ -464,13 +464,15 @@ void node_math_sqrt_no_clamp(float value1, float value2, out float result) {
|
|
|
"""),
|
|
|
|
|
|
ShaderFunction(code="""
|
|
|
-void node_math_absolute_no_clamp(float value1, float value2, out float result) {
|
|
|
+void node_math_absolute_no_clamp(float value1, float value2,
|
|
|
+ out float result) {
|
|
|
result = abs(value1);
|
|
|
}
|
|
|
"""), # nopep8
|
|
|
|
|
|
ShaderFunction(code="""
|
|
|
-void node_math_minimum_no_clamp(float value1, float value2, out float result) {
|
|
|
+void node_math_minimum_no_clamp(float value1, float value2,
|
|
|
+ out float result) {
|
|
|
result = min(value1, value2);
|
|
|
}
|
|
|
"""),
|
|
@@ -482,13 +484,15 @@ void node_math_maximum_no_clamp(float value1, float value2, out float result) {
|
|
|
"""),
|
|
|
|
|
|
ShaderFunction(code="""
|
|
|
-void node_math_less_than_no_clamp(float value1, float value2, out float result) {
|
|
|
+void node_math_less_than_no_clamp(float value1, float value2,
|
|
|
+ out float result) {
|
|
|
result = float(value1 < value2);
|
|
|
}
|
|
|
"""), # nopep8
|
|
|
|
|
|
ShaderFunction(code="""
|
|
|
-void node_math_greater_than_no_clamp(float value1, float value2, out float result) {
|
|
|
+void node_math_greater_than_no_clamp(float value1, float value2,
|
|
|
+ out float result) {
|
|
|
result = float(value1 > value2);
|
|
|
}
|
|
|
"""), # nopep8
|
|
@@ -551,7 +555,8 @@ void node_math_arcsine_no_clamp(float value1, float value2, out float result) {
|
|
|
"""),
|
|
|
|
|
|
ShaderFunction(code="""
|
|
|
-void node_math_arccosine_no_clamp(float value1, float value2, out float result) {
|
|
|
+void node_math_arccosine_no_clamp(float value1, float value2,
|
|
|
+ out float result) {
|
|
|
if (value1 < 0.0 || value1 > 1.0)
|
|
|
result = 0.0;
|
|
|
else
|
|
@@ -560,7 +565,8 @@ void node_math_arccosine_no_clamp(float value1, float value2, out float result)
|
|
|
"""), # nopep8
|
|
|
|
|
|
ShaderFunction(code="""
|
|
|
-void node_math_arctangent_no_clamp(float value1, float value2, out float result) {
|
|
|
+void node_math_arctangent_no_clamp(float value1, float value2,
|
|
|
+ out float result) {
|
|
|
result = atan(value1);
|
|
|
}
|
|
|
"""), # nopep8
|
|
@@ -644,7 +650,8 @@ void node_math_less_than_clamp(float value1, float value2, out float result) {
|
|
|
"""),
|
|
|
|
|
|
ShaderFunction(code="""
|
|
|
-void node_math_greater_than_clamp(float value1, float value2, out float result) {
|
|
|
+void node_math_greater_than_clamp(float value1, float value2,
|
|
|
+ out float result) {
|
|
|
result = clamp(float(value1 > value2), 0.0, 1.0);
|
|
|
}
|
|
|
"""), # nopep8
|