You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
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:
@@ -1136,7 +1136,7 @@ String VisualShaderNodeScalarFunc::generate_code(Shader::Mode p_mode, VisualShad
|
|||||||
"round($)",
|
"round($)",
|
||||||
"ceil($)",
|
"ceil($)",
|
||||||
"fract($)",
|
"fract($)",
|
||||||
"min(max($,0),1)",
|
"min(max($,0.0),1.0)",
|
||||||
"-($)",
|
"-($)",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user