-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Improve the editor native shader source visualizer #89690
Improve the editor native shader source visualizer #89690
Conversation
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.
Works great! (The visualizer even opens up more quickly for me, at least in debug mode (21s -> 16s). Code looks fine too.
- Use CodeEdit to enable features such as line numbers and minimap. - Enable syntax highlighting. - Use a fixed-width font. - Use the script editor settings.
07682d4
to
44de95e
Compare
06abc86
…nspector Improve the editor native shader source visualizer
Thanks! |
|
||
// Colorize preprocessor statements. | ||
const Color user_type_color = EDITOR_GET("text_editor/theme/highlighting/user_type_color"); | ||
syntax_highlighter->add_color_region("#", "", user_type_color, true); |
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.
Since we have #85014 merged, should we add a syntax_highlighter->set_uint_suffix_enabled()
here too?
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.
Sure, feel free to open a PR for this.
The native shader source visualizer is the option from this dropdown:
Performance (in terms of the time it takes for the dialog to open) is roughly the same as before.
Preview
Before
After