summaryrefslogtreecommitdiffstats
path: root/servers
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-07-07 08:32:09 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-07-07 08:32:09 +0200
commitb2ada1b69089817000c5522f2a48924cfd72e312 (patch)
tree4c959a868c27e0e0bbf59ce302504574b00fa6ca /servers
parentb3c2b52025f0ec8a94d002666f235d273f9ddc42 (diff)
parent356297f9093a06b8e61892d3819390cd5b927994 (diff)
downloadredot-engine-b2ada1b69089817000c5522f2a48924cfd72e312.tar.gz
Merge pull request #78972 from bitsawer/fix_shader_float_precision
Fix shader language float literal precision truncation
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering/shader_compiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/shader_compiler.cpp b/servers/rendering/shader_compiler.cpp
index 4ea06afe79..1515ed32f6 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";
}