You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix shader language float literal precision truncation
(cherry picked from commit 356297f909)
This commit is contained in:
@@ -178,7 +178,7 @@ static String _mkid(const String &p_id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static String f2sp0(float p_float) {
|
static String f2sp0(float p_float) {
|
||||||
String num = rtoss(p_float);
|
String num = rtos(p_float);
|
||||||
if (!num.contains(".") && !num.contains("e")) {
|
if (!num.contains(".") && !num.contains("e")) {
|
||||||
num += ".0";
|
num += ".0";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user