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. ```
This commit is contained in:
parent
a32b26dfa2
commit
52538b200f
@ -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)",
|
||||
"-($)",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user