Skip to content
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

[3.2] Improve rotation gizmo #43016

Merged
merged 1 commit into from
Oct 30, 2020
Merged

Conversation

mbrlabs
Copy link
Contributor

@mbrlabs mbrlabs commented Oct 22, 2020

Since we probably going to have to wait quite a while for Godot 4.0, i backported the improved rotation gizmo added in #42094 to 3.2. I think this is a huge usability improvement and should be included in 3.2.

All credit goes to @JFonS for this amazing work.
It was a pretty straightforward port. I basically just had to update the renamed classes/methods and change the render mode depth_test_disabled to depth_test_disable in the shaders.

Hide the back sides of the rotation gizmo circles and add a white
outline for better visualization of the rotation "sphere".

This is a 3.2 backport of @JFonS work on the master branch; all credit
goes to him.
@mbrlabs
Copy link
Contributor Author

mbrlabs commented Oct 22, 2020

Hm, the iOS export templates failed to build. It worked before my force-push and this PR touches editor-only files. Looks like a caching problem in the CI server, so a clean build would probably fix it.

Copy link
Contributor

@JFonS JFonS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good.

This may produce a hiccup when the shaders are compiled, but I guess there isn't much way around it in 3.2.

@mbrlabs
Copy link
Contributor Author

mbrlabs commented Oct 29, 2020

Maybe since they get compiled when clicking on a Spatial for the first time. But it's not really noticable and this "lazy-compiling" of shaders happens quite a lot inside the editor.

@akien-mga akien-mga merged commit 4325c54 into godotengine:3.2 Oct 30, 2020
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants