function toGLSLFloatString(num) {
    let str = "" + num;
    if (!str.includes("."))
        str += ".";
    return str;
}
adds a `.` after a number if needed (e.g converts `1` to `"1."` but leaves
`1.2` as `"1.2"`)
@param num number to convert