summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorMeriipu <Meriipu@users.noreply.github.com>2020-07-25 16:11:23 +0200
committerMeriipu <Meriipu@users.noreply.github.com>2020-07-25 20:26:02 +0200
commit7f9bfee0ac4707f2586bd25c04c3883c9eb1be9e (patch)
treedd8e7f049f50eca6252a6e859737c821122dcf44 /servers
parent5f75cec59e004b5ff0fefdb326f987409b7d7e89 (diff)
GDScript: Clarified/fixed inaccuracies in the built-in function docs.
The input to smoothstep is not actually a weight, and the decscription of smoothstep was pretty hard to understand and easy to misinterpret. Clarified what it means to be approximately equal. nearest_po2 does not do what the descriptions says it does. For one, it returns the same power if the input is a power of 2. Second, it returns 0 if the input is negative or 0, while the smallest possible integral power of 2 actually is 1 (2^0 = 1). Due to the implementation and how it is used in a lot of places, it does not seem wise to change such a core function however, and I decided it is better to alter the description of the built-in. Added a few examples/clarifications/edge-cases.
Diffstat (limited to 'servers')
0 files changed, 0 insertions, 0 deletions