From 0dec3d6485d58597c3c0444d0362cc530e3fd948 Mon Sep 17 00:00:00 2001 From: bitsawer Date: Mon, 3 Jul 2023 12:48:33 +0300 Subject: [PATCH] Fix shader language float literal precision truncation (cherry picked from commit 356297f9093a06b8e61892d3819390cd5b927994) --- servers/rendering/shader_compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/rendering/shader_compiler.cpp b/servers/rendering/shader_compiler.cpp index 4ea06afe79e..1515ed32f6b 100644 --- a/servers/rendering/shader_compiler.cpp +++ b/servers/rendering/shader_compiler.cpp @@ -178,7 +178,7 @@ static String _mkid(const String &p_id) { } static String f2sp0(float p_float) { - String num = rtoss(p_float); + String num = rtos(p_float); if (!num.contains(".") && !num.contains("e")) { num += ".0"; }