-
-
Notifications
You must be signed in to change notification settings - Fork 21.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
Rename the .shader
file extension to .gdshader
#47336
Rename the .shader
file extension to .gdshader
#47336
Conversation
This should be added to Godot's MIME metadata file then: https://github.com/godotengine/godot/blob/master/misc/dist/linux/org.godotengine.Godot.xml |
28e2189
to
5792bb5
Compare
Done 🙂 |
This lets third-party software recognize Godot shaders more easily, without relying on guesswork since the `.shader` extension is generic.
5792bb5
to
b191a75
Compare
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.
Another reason that it's good to change this is that VS Code currently displays .shader
files with the Unity logo.
.gdshader
is better than .shader
. It might also be worth considering .gdsl
, I think I like .gdshader
better, but I'm just putting this on the table for discussion.
(Note: I haven't actually tested the code, but I'm gonna give this an approval anyway)
I'm not opposed to the change, but this raises the questions of what to do with other extensions that are used for specific resource formats (most of which are the same format as However we might consider that shaders are different since those are actually text files with code, like GDScript's
I'd consider this to be a VS Code bug and not a good reason to do the change. Unity also uses extensions for metadata such as |
I would recommend using |
I'm not in favor of replacing the extensions with a harder to read one (like |
As Calinou's proposal stated, this is more so those files get identified for what they are: Godot's own shading language. ".shader" makes everything else think it's just GLSL. |
But this leaves us with an extension that's weird to read.
|
I'm a bit concerned about using |
Godot projects in 4.0 can use glsl shaders directly |
We discussed this in a PR review meeting and finally reached a consensus that renaming the extension to
We also discussed that if this is accurate, this is a bug and should be reported as such to VS Code. |
Thanks! |
This lets third-party software recognize Godot shaders more easily, without relying on guesswork since the
.shader
extension is generic.Existing
.shader
files will have to be renamed to.gdshader
to be recognized by Godot again.This closes godotengine/godot-proposals#2488.