diff options
author | Windy Darian <p123456638@msn.com> | 2019-02-25 23:30:03 -0500 |
---|---|---|
committer | Windy Darian <p123456638@msn.com> | 2019-02-25 23:30:03 -0500 |
commit | 52538b200f8e62b959741693745a167ee04b7670 (patch) | |
tree | 492e5fa4cfd8a59cb7557864da2eebfb404012e7 /scene/resources | |
parent | a32b26dfa26f2a039bf9c84b90d10666bcf785c9 (diff) |
Fix saturate ScalarFunc in Visual Shader
Was getting this error when using a saturate node. This change fixes it.
```
:39 - Invalid arguments for built-in function: max(float,int)
drivers\gles3\rasterizer_storage_gles3.cpp:2150 - Condition ' err != OK ' is true.
```
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/visual_shader_nodes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/visual_shader_nodes.cpp b/scene/resources/visual_shader_nodes.cpp index d95e0e2da1..e47069d723 100644 --- a/scene/resources/visual_shader_nodes.cpp +++ b/scene/resources/visual_shader_nodes.cpp @@ -1136,7 +1136,7 @@ String VisualShaderNodeScalarFunc::generate_code(Shader::Mode p_mode, VisualShad "round($)", "ceil($)", "fract($)", - "min(max($,0),1)", + "min(max($,0.0),1.0)", "-($)", }; |