-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add smoothstep graphs #9489
Add smoothstep graphs #9489
Conversation
Just for clarity as it's not specified clearly in the OP, Malcolm is adding just images, no documentation changes, here because they are included in the documentation of the smoothstep function inside the main godot repo. I don't know if there is precedence for this. I don't know if this is the correct way to go about adding images in the class reference, especially seeing the way they are referenced? The images do provide a lot of context to the class reference. |
9bc9890
to
e633d03
Compare
I decided to merge the graphs into a single comparison image, which also includes showing the zero-range behavior. Additionally the graphs now show the area under the curve to better highlight the function response. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, leaving it up to the documentation team to verify this is the way forward.
IIRC this is fine and already done in other parts of the class reference. Please convert the PNG file to WebP (we're in the process of moving the docs repository over to WebP, see image creation guidelines). That the linked PR using this image (godotengine/godot#93149) does other stuff than just embedding the image makes it a bit harder to merge, as the main repo PR may get rejected. Please ping me if it gets another approval. |
…ith positive, zero, and negative ranges.
e633d03
to
379fea1
Compare
The image has been converted to WebP format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Image looks good to me. Note that the main repository PR needs to be merged first before this PR can be merged.
It might be better for this to go in first. If the main repository PR goes in then users trying to access the smoothstep documentation will get missing images. Pulling this in first shouldn't break anything - it'll just be available for use when the main repository merge goes through. |
That makes sense. Merging now to be safe |
This PR adds two graphs showing the behavior of the smoothstep function with positive and negative ranges.